Lists actual polls in the network.
Request Structure
JSON object:
{
"method": "poll",
"subcommand": ["list"],
"arguments": {
"net": "network_name"
},
"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
Curl Example
Request:
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "poll",
"subcommand": ["list"],
"arguments": {
"net": "riemann",
},
"id": "1"
}'
Response:
{
"type": 2,
"result": #most of the results were missed to make this response readable
[
[
{
"poll_tx": "0xD6AE0A94E7F1E162A3335ECED90758E76B2DBBA60D03B50C3CACC639E0269FDB",
"question": "To be or not to be?",
"token": "tKEL"
},
{
"poll_tx": "0x28F128F092C115A58F355ED4CA2B2CCBC5F2D40AF92CA8421E62EC6A64D80555",
"question": "\"Potato",
"token": "tKEL"
},
{
"poll_tx": "0xA7628CBAAFBEBB0BE2783F6A2DBC2E4CA4F3B7E6458E68E586AE36659961C7EE",
"question": "question0904",
"token": "tKEL"
},
{
"poll_tx": "0x280FAEE576A53B95D5B6043B1A4772D52B19F4CE1F41F73A8A58F2E1167038C0",
"question": "question1004",
"token": "tKEL"
},
{
"poll_tx": "0x5187AD6ED85655E9A96003C1258BD4DADA1EA4C5F9DFB5378079C6E9C043AD51",
"question": "\"Potato",
"token": "tKEL"
}
]
],
"id": 1
}