Finds event which contains specified datum.
Request Structure
JSON object:
{
"method": "dag",
"subcommand": ["event","find"],
"arguments": {
"net": "network_name",
"chain": "chain_name",
"datum": "datum_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
chain
- the name of chain (main
or zerochain
)
datum
- hash of the datum
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","find"],
"arguments": {
"net": "riemann",
"chain": "zerochain",
"datum": "0x414C8D377E28C387FF2AB893670BEEA10F5126A8655E239E12FF348F70FB4F40"
},
"id": "1"
}'
Response:
{
"type": 2,
"result": [
{
"Events": [
{
"event hash": "0x5B20594334D6B94EC96CCE234CC56785376D79DCB3D7445D5C2AF4C52B225546"
}
],
"Total": 1
}
],
"id": 1
}