Search Apps Documentation Source Content File Folder Download Copy Actions Download State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

polls/v0 package

Overview

Package polls is an on-chain poll / voting realm for gno.land.

Anyone can create a poll with a question and a comma-separated list of options. Each caller address may cast exactly one vote per poll. Render draws every poll with its options, tallies as ▓░ bar charts, percentages and the total vote count.

Function

PollCount

func PollCount() int

PollCount returns the number of polls created so far (read-only helper).

Command

gnokey query vm/qeval -remote "https://rpc.gno.land" -data "gno.land/r/moul/x/daily/polls/v0.PollCount()"

Result