Skip to content
Voting Platform on Nebulas
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs/img
src
.gitignore
LICENSE
README.md

README.md

Votestagram

Voting Platform on Blockchain

  • Blockchain Powered by Nebulas
  • developed by Jon Jee

votinglistview

voteview

votingresult

How to use

  1. enter https://nas.holy.kiwi/

  2. you can see voting lists and enroll button.

  3. click enroll button.

  • fill title, author, choices (at most 5).

  • if you click submit button, wallet popup will be appeared. click confirm button.

  1. 15 seconds later, you can see your voting in voting list.

  2. click the title of your voting, you can vote them once.

Feature

Syntax

function enroll(votingItem);
  • enroll a voting
  • id is created automatically from 1 sequentially

Parameter Values

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

Syntax

function get(id);
  • get a voting by id

Syntax

function getVotingList();
  • get all list of votings

Syntax

function vote(id, index);
  • can not vote twice or more by one address

Parameter Values

Argument Type Description
id number the id of voting
index number the index of choices of the voting.

Syntax

function delete(id);
  • delete the votingItem in id
You can’t perform that action at this time.