Gets information about definite poll.

Command syntax:

poll dump 
-net <net_name> 
-hash <poll_hash>

Options:

-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-hash - hash of the poll
 

CLI Example

Command:

cellframe-node-cli poll dump -net riemann -hash 0x687A7CDBC0E0108DED5E6BA1DE457E1ACB7FEC39A030D869411053F96199E23C

Response:

 poll_tx: 0x687A7CDBC0E0108DED5E6BA1DE457E1ACB7FEC39A030D869411053F96199E23C
        question: Question_string
        token: tKEL
        can_change_status: false
        delegated_key_required: false
        results:
 
                option_id: 0
                option_text: Option0
                votes_count: 0
                votes_percent: 0
                votes_sum: 0.0
                votes_sum_datoshi: 0
                votes_sum_weight: 0.0
 
 
                option_id: 1
                option_text: Option1
                votes_count: 0
                votes_percent: 0
                votes_sum: 0.0
                votes_sum_datoshi: 0
                votes_sum_weight: 0.0
 
 
                option_id: 2
                option_text: OptionN
                votes_count: 0
                votes_percent: 0
                votes_sum: 0.0
                votes_sum_datoshi: 0
                votes_sum_weight: 0.0
 
 
        votes_count: 0
        total_sum: 0.0
        total_sum_datoshi: 0

JSON-RPC Example

JSON-RPC Request - POLL DUMP

Gets information about definite poll

Request Structure

JSON object:

{
  "method": "poll",
  "subcommand": ["dump"],
  "arguments": {
    "net": "network_name",
    "hash": "poll_hash"
  },
  "id": "1"
}

Parameters: net (network_name) - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received using - Node Command - NET LIST hash - hash of the poll tx

Curl Example

Request:

curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
  "method": "poll",
  "subcommand": ["dump"],
  "arguments": {
    "net": "riemann",
    "hash": "0x687A7CDBC0E0108DED5E6BA1DE457E1ACB7FEC39A030D869411053F96199E23C"
  },
  "id": "1"
}'

Response:

{
  "type": 2,
  "result": [
    {
      "poll_tx": "0x687A7CDBC0E0108DED5E6BA1DE457E1ACB7FEC39A030D869411053F96199E23C",
      "question": "Question_string",
      "token": "tKEL",
      "can_change_status": false,
      "delegated_key_required": false,
      "results": [
        {
          "option_id": 0,
          "option_text": "Option0",
          "votes_count": 0,
          "votes_percent": 0,
          "votes_sum": "0.0",
          "votes_sum_datoshi": "0",
          "votes_sum_weight": "0.0"
        },
        {
          "option_id": 1,
          "option_text": "Option1",
          "votes_count": 0,
          "votes_percent": 0,
          "votes_sum": "0.0",
          "votes_sum_datoshi": "0",
          "votes_sum_weight": "0.0"
        },
        {
          "option_id": 2,
          "option_text": "OptionN",
          "votes_count": 0,
          "votes_percent": 0,
          "votes_sum": "0.0",
          "votes_sum_datoshi": "0",
          "votes_sum_weight": "0.0"
        }
      ],
      "votes_count": 0,
      "total_sum": "0.0",
      "total_sum_datoshi": "0"
    }
  ],
  "id": 1
}
Link to original