DevChain
No gas needed. Accounts are only for identification purposes.
See the dapp in action
DEMO: A voting dappStep 1
Open the BUIDL IDE tool in any browser. http://buidl.secondstate.io/
Step 2
2.1 Copy and paste the following code to the contract section of BUIDL.
The smart contract is very simple. It provides the text and image url to be voted on, and keeps a record of votes. The vote()
method is called by voters to vote thumb up or down.
2.2 Click on Compile and you will see the following. Enter your text and image URL to be voted on, and then click on deploy on chain.
The contract is now deployed on the DevChain, and you can call its functions directly from inside BUIDL.
2.3 Go to the dapp section. Click on the Resources tab, and add the following as resources.
JavaScript: https://code.jquery.com/jquery-3.4.1.min.js
2.4 Next, copy and paste the following HTML code into the HTML editor.
2.5 Copy and paste the following JavaScript code into the JS editor.
2.6 Click on Run to see the dapp in action! You can now vote thumb up or down inside BUIDL.
2.7 Finally, you can publish the dapp.
Just click on the Publish button and give the dapp a name. Once published, you can share the published URL to the public to vote on your issue! Notice that the DevChain requires no gas to operate. So the user can vote from any of the auto-created or imported DevChain accounts.
Last updated
Was this helpful?