Shows detailed event information.
Request Structure
JSON object:
{
"method": "dag",
"subcommand": ["event","count"],
"arguments": {
"net": "network_name",
"chain": "chain_name",
"event": "event_hash",
"from": "events | events_lasts | threshold | round.new | round.<round_id_in_hex>",
"H": "hex | base58"
},
"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
chain
- the name of chain (main
or zerochain
)
event
- hash of the event
from
- ledger section, from where the events will be unloaded (events, events_lasts, threshold, round.new). Must be indicated in HEX format. Use events
as default.
H
- the format of the hash value for the command parameter. It can be either in HEX format: 0x4E9B6B890D5D78BB46AA5442BDEFF2FPDA8929BA9689F86235353BF784B5
or in Base58: Betcryb4arefsamtjars9dxydzasszdfkkh6
, optional
If you make a request in the Cellframe network, use parameter chain:zerochain
.
Curl Example
Request:
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '{
"method": "dag",
"subcommand": ["event","dump"],
"arguments": {
"net": "riemann",
"chain": "zerochain",
"event": "0x5B20594334D6B94EC96CCE234CC56785376D79DCB3D7445D5C2AF4C52B225546",
"from": "events",
},
"id": "1"
}'
Response:
{
"type": 2,
"result": [
{
"Event hash": "0x5B20594334D6B94EC96CCE234CC56785376D79DCB3D7445D5C2AF4C52B225546",
"Header": "empty",
"version": "0x00",
"round ID": 11,
"cell_id": "0x0000000000000000",
"chain_id": "0x0000000000000000",
"ts_created": "Mon, 10 Apr 2023 15:15:40 +0000",
"hashes count": 1,
"hash": "0x5297CB7384BF93FB76EF574341CF60E1C297736D6C780BA64C956E9F888FE964",
"Datum": {
"=== Datum decree ===": "empty",
"hash": "0x414C8D377E28C387FF2AB893670BEEA10F5126A8655E239E12FF348F70FB4F40",
"size": 6696,
"type": "DECREE_TYPE_COMMON",
"subtype": "COMMON_SUBTYPE_STAKE_MIN_VALIDATORS_COUNT",
"TSD": "",
"Min signers count": "2",
"signatures": "",
"SIGNS": [
{
"sign #": 1,
"hash": "0x847991D080A242F481761321549E356517CB9024C1E204326ACB85064ED4FE29",
"type": "sig_dil",
"sign size": 2096
},
{
"sign #": 2,
"hash": "0xA9279C1CBAC80812F5E99C70B5A55E390B4334E1ACDC994BA4DC365C9F5886DF",
"type": "sig_dil",
"sign size": 2096
}
]
},
"datum_size": 6711,
"type_id": "DATUM_DECREE",
"ts_create": "Mon, 10 Apr 2023 15:15:12 +0000",
"data_size": 6696,
"signs count": 3,
"type": "sig_dil",
"pkey_hash": "0x57AF31F04D48F44682FEEF66D92578CA98CA9E682E088599727CD16EC4AF9991"
}
],
"id": 1
}