Shows detailed event information.

Command syntax:

dag event dump 
-net <net_name> 
-chain <chain_name> 
-event <event_hash> 
-from {events | events_lasts | threshold | round.new  | round.<round_id_in_hex>} [-H {hex | base58(default)}]

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
-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)

CLI Example

Command:

cellframe-node-cli dag event dump 
-net riemann 
-chain zerochain 
-event  0x8B289BF65AB053E47AA4E43AC03817802AD1FC29E381E5382681CA6867594C33 
-from events

Response:

Event 0x8B289BF65AB053E47AA4E43AC03817802AD1FC29E381E5382681CA6867594C33:
                Header:
                       version: 0
                        round ID: 24
                        cell_id: 0x0000000000000000
                        chain_id: 0x0000000000000000
                        ts_created: Tue, 04 Jul 2023 11:26:36 +0000
                        hashes: count: 1
                                hash: 0xC50AEAD64265FC5482DB916340BDAB5F89C304B2E6CA173756CD9D75AA5BB259
                datum:  datum_size: 10246
                        version:=0x00
                        type_id:=DATUM_TOKEN_EMISSION
                        ts_create=Tue, 04 Jul 2023 11:25:59 +0000
                        data_size=10231
                                signs:  count: 3
                                                type: sig_dil   pkey_hash: 0x847991D080A242F481761321549E356517CB9024C1E204326ACB85064ED4FE29
                                                type: sig_dil   pkey_hash: 0x57AF31F04D48F44682FEEF66D92578CA98CA9E682E088599727CD16EC4AF9991
                                                type: sig_dil   pkey_hash: 0xA9279C1CBAC80812F5E99C70B5A55E390B4334E1ACDC994BA4DC365C9F5886DF
emission: hash 0xD57AF6A7A8AA4BB7E792E4999CA28F89A6AF34D71333A9D3F2C7C71D8D3B3963
        10000000000000000000000000000000000000000000000.0(10000000000000000000000000000000000000000000000000000000000000000) tKEL, type: AUTH, version: 3
  to addr: o9z3wUTSTicckJuozCroUZnGMrSu9nWntsb93YaUa4ULAyxh8HJU6KkxEo2dN5ucSQPYtchniS5xhXzhnH5zqBSkxPz4D7fjEnrmLXRK
  signs_count: 3
  tsd_total_size: 0
signatures:
1) 0xE7D0E94E6792FE145A9691ECDFECA151BC1C7477C3E11979DA48E5752C14A2E1, sig_dil, 2096 bytes
2) 0x0A57D6D1F3E72E9F2D1DDA6E6089AFEB0AADB953FB347E08C7B6575D65FA6D56, sig_dil, 2096 bytes
3) 0x18A38ACF46876226F9AC130427870814503C19B00185A85F034DDC2058D699C1, sig_dil, 2096 bytes

JSON-RPC Example

JSON-RPC Request - DAG EVENT DUMP

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