You are viewing a single comment's thread from:

RE: What are your expectations of Hive witnesses?

in Hive Polls6 months ago

This poll feature is just a small app that looks for specific custom_json operations, and shouldn't require active key.
The operation (given you vote for option 1) should look something like this:

{
      "type": "custom_json_operation",
      "value": {
        "id": "polls",
        "json": "{\"poll\":\"acidyo/what-are-your-expectations-of-hive-witnesses\",\"action\":\"vote\",\"choices\":[1]}",
        "required_auths": [],
        "required_posting_auths": [
          "gtg"
        ]
      }
}

I don't know how it would handle multiple choices, i.e. [1,2,3,4,5,6,7].