Finds event which contains specified datum.

Command syntax:

dag event find -net <net_name> [-chain <chain_name>] -datum <datum_hash>

Options:

-net - name of the Cellframe network. The list of networks can be found in the <Config_dir> \ etc \ network folder folder or received by the Cellframe-Node-Cli Net List command
-chain - the name of Chain. The list of chain can be found in the directory <Config_dir> \ etc \ network \ <network_name> or get the Cellframe-Node-App Net List Chains command (optional)
-datum - hash of the datum

CLI Example

Command:

cellframe-node-cli dag event find -net riemann -datum 0x562FB0177E71EE299532467A937E181CB409714864FBC8620590CF0E62CA22C0

Response:

        Events:

                event hash: 0x6F211498A167714C55409C8563D14787013BBD0CEA6D1BEAE2681C4C3E4404AE


        Total: 1

JSON-RPC Example

JSON-RPC Request - DAG EVENT FIND

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
}
Link to original