Looks for the datum hash presence in the mempool or chains
CLI Example
Command syntax:
mempool check
-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 or received by The Cellframe-Node-CLI using command - net list
-datum - hash of the datum
-chain - name of the chain (optional)
Example:
Command:
cellframe-node-cli mempool check
-net riemann
-chain main
-datum 0xC203EA5BB6C5C4297B3885549771C2C1526D7475AE6449668BC512B4E119966A
Response:
hash: 0xC203EA5BB6C5C4297B3885549771C2C1526D7475AE6449668BC512B4E119966A
net: riemann
chain: main
find: true
source: mempool
JSON-RPC Example
Command:
curl --unix-socket /opt/cellframe-node/var/run/node_cli
-X POST http://localhost/connect
-d '{"method":"mempool", "params":["mempool;check;-net;riemann;-chain;main;-datum;0xC203EA5BB6C5C4297B3885549771C2C1526D7475AE6449668BC512B4E119966A"], "id":"1"}'
Response:
{
"type": 2,
"result": [
{
"hash": "0xC203EA5BB6C5C4297B3885549771C2C1526D7475AE6449668BC512B4E119966A",
"net": "riemann",
"chain": "main",
"find": true,
"source": "mempool"
}
],
"errors": null,
"id": 1
}