Voting Platform on Blockchain
- Blockchain Powered by Nebulas
- developed by Jon Jee
How to use
you can see voting lists and enroll button.
click enroll button.
fill title, author, choices (at most 5).
if you click submit button, wallet popup will be appeared. click confirm button.
15 seconds later, you can see your voting in voting list.
click the title of your voting, you can vote them once.
- enroll a voting
- id is created automatically from 1 sequentially
|title||string||the title of voting|
|author||string||author of voting(if there is no author parameter, author value is filled by the author's address)|
|choices||string||choices of voting|
- get a voting by id
- get all list of votings
function vote(id, index);
- can not vote twice or more by one address
|id||number||the id of voting|
|index||number||the index of choices of the voting.|
- delete the votingItem in id