Welcome to js-starter-kit!
This is a minimal client side wallet which allows you to make interactions with the OmiseGO network from a browser.
Before you get started, make sure you have a local instance of elixir-omg
running or have access to an already deployed network. Feel free to build on top of the functionalities which you see here.
WARNING: This kit is meant for development and demonstration purposes. It is not safe for production use!
Initial Setup
-
Make sure you have access to the endpoints including
Watcher
andChildchain
, address of thePlasma Contract
andWeb3 Provider
. -
Open up the file
omg-wallet.js
in your favorite text editor. -
Replace the current configuration in
omg-wallet.js
with your endpoints for WEB3_PROVIDER_URL, WATCHER_URL, CHILDCHAIN_URL, PLASMA_CONTRACT_ADDRESS. -
Save the
omg-wallet.js
.
Usage
-
Open up your browser and navigate to
omg-wallet.html
. -
Click on
Create new wallet
. -
Ensure that you write down your seed phrase somewhere safe and enter in a password.
-
Send some ETH to your newly generated browser wallet from Metamask or whichever wallet you have.
-
Optional: Send some ERC20 tokens to your newly generated browser wallet.
-
Deposit into the OmiseGO Network: Here you will have to wait for a little bit. Keep refreshing via the
refresh
button. After a while, your balance will be updated. -
Make a transfer on the OmiseGO Network: Fill in the values for the
Transfer
fields and clickSend
. Depending on the network congestion, you may have to wait for a little while for the transaction to be included in a block. Click on theRefresh balances
button until your balance has been properly reflected. -
Exit the funds: Fill in an address that has funds in the OmiseGO Network and click on
Exit
.