Get to know the Plasma Interface
Estimated time: 5 minutes
- To understand plasma transactions from end-to-end
- To get first hand experience in making interactions with plasma
- To learn the process of making
In this guide, we will introduce to you the Plasma Interface by making transactions directly from your browser. Just make sure you have the following installed:
- node-js >10.0.0
- npm > 6.0.0
Have access to a code editor, browser with a web3 wallet like MetaMask
This guide is meant for Samrong and any v0.2 instance of OMG Network
Clone the latest version of
js-starter-kitonto your local machine. The repo can be found here https://github.com/omisego/js-starter-kit
Open up the
config.json your text editor
Replace the current configs in
config.jswith the following Network Endpoints for Samrong then save the file.
install all the dependencies
start the app up by running
npm run dev
1. Funding the wallet on the Root chain
1.1. the clientside wallet will rely on the funds you have on your existing account. In order to run the JS-Starter-kit, make sure you have sent yourself some Rinkeby Testnet ETH. We will use that later to make transactions.
1.2 click the refresh button, you should see the Rinkeby ETH that you own in your account
2.1. Click on the DEPOSIT button, choose the amount you would like to deposit in Wei. Click okay. There should be a pop up to confirm your transaction. Click confirm.
2.2. Here you will have to wait for about 2-3 minutes depending on the network congestion. You can refresh balance via the [refresh] button. After a while, your balance will be updated
3.1. Click on the TRANSFER button. Fill in the amount you would like to transfer, including the address of the recipient- this can be another wallet you own on MetaMask. Click Okay and there should be a popup that shows the message you are trying to sign- here you can inspect the inputs and outputs of your transactions. After making sure this is accurate, click Confirm.
3.2. To see the status of your transaction. You could also open up your browser console and retrieve the TX hash, by searching for the hash through Plasma Block Explorer you should see the details of the transaction.
4.1. Once you are done, simply click on the EXIT button and select the UTXO that you would like to exit and click on Okay.
Congratulations, you have now gone through the end-to-end process of making transactions on the OMG Network.