Proffer Hackathon – Workshop 1
Ethereum dApps with Toshi
5 Apps in 5 Days
1st Place, Coinbase Toshi Hackathon, June ‘17
Step 1 Download Toshi Dev
https://developers.toshi.org/docs/ios
https://developers.toshi.org/docs/android
Step 2 Create account, get ETH
Free ETH from
ToshiBot
Step 3 Clone sample app, copy/paste into
new project
git clone https://github.com/toshiapp/toshi-app-js.git
Step 3 Clone sample app, copy/paste into
new project
git clone https://github.com/toshiapp/toshi-app-js.git
Step 4 Generate a Seed (12 words)
Step 5 Set Environment Vars in
“docker-compose.yml”
Step 6 Install Docker, Run locally
Note: the first run of “docker-compose up” takes forever (15+ minutes), but faster after that
Step 7 Find your App in “Browse” and use it
Message Types
Message - any combo of text, buttons, and
image/video/link attachments
Command - command sent silently as result of
button press
Payment - Notification of payment
PaymentRequest - Requests an Ethereum
transaction from the recipient
Init
InitRequest
An example Message/Command flow
Sending messages from JS code
JSON structure
for a message
JSON protocol for message
Source: https://www.sofaprotocol.org/
Examples of messages
Source: https://www.sofaprotocol.org/
Examples of messages
Source: https://www.sofaprotocol.org/
Handling “Commands”
Charging the user –
requesting ETH
Paying the user –
sending ETH
Let’s look at code
https://github.com/toshiapp/toshi-app-js/

Develop mobile apps on Ethereum in 30 minutes