Voting Platform on Blockchain
- Blockchain Powered by Nebulas
- developed by Jon Jee
-
enter https://nas.holy.kiwi/
-
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.
function enroll(votingItem);
- enroll a voting
- id is created automatically from 1 sequentially
Argument | Type | Description |
---|---|---|
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 |
function get(id);
- get a voting by id
function getVotingList();
- get all list of votings
function vote(id, index);
- can not vote twice or more by one address
Argument | Type | Description |
---|---|---|
id | number | the id of voting |
index | number | the index of choices of the voting. |
function delete(id);
- delete the votingItem in id