Removes event from the new forming round and puts it its datum back to mempool.

Command syntax:

dag event cancel 
-net <net_name> 
-chain <chain_name> 
-event <event_hash>

Options:

-net - name of the Cellframe Network. The list of networks can be found in the <Config_dir> \ etc \ network folder or received by The Cellframe-Node-CLI using command - net list
-chain - the name of Chain. The list of chains can be found in the directory <Config_dir> \ etc \ network \ <network_name> or by the Cellframe-Node-CLI using command - net list chains
-event - hash of the event

CLI Example

Command:

cellframe-node-cli dag event cancel 
-net foobar 
-chain zerochain 
-datum 0x771858B0FD6BB61C999C2AE26FBE3EF4BAD1E4D974A85DF5FDE3D8272340863E

Response:

Event was removed successfully (null) from the new forming round

JSON-RPC Example

JSON-RPC Request - DAG EVENT CANCEL

Removes event from the new forming round and puts it its datum back to mempool.

Request Structure

JSON object:

{
  "method": "dag",
  "subcommand": ["event","cancel"],
  "arguments": {
    "net": "network_name",
    "chain": "chain_name",
    "event": "event_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) event - hash of the event

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","cancel"],
  "arguments": {
    "net": "foobar",
    "chain": "zerochain",
    "datum": "0x22BFEF09C1254E61967259CD1245C1380594AF401194F59B946EFE0E9332D817"
  },
  "id": "1"
}'

Response:

{
  "type": 0,
  "result": "Successfuly removed event (null) from the new forming round ",
  "errors": null,
  "id": 1
}
Link to original