Shows all ledger information belonged to this address/wallet/transaction
CLI Example
Command syntax:
ledger tx
{-addr <addr> | -w <wallet_name> | -tx <tx_hash>}
-net <net_name>
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
-addr/-w/-tx - shows information using address hash, hash of the wallet or transaction hash
Example:
Command:
cellframe-node-cli ledger tx
-addr ptV4n68gTebdUTcbpMWKhfpsGuugvEdK6bwKS8P1q9gkUCKHKKo6t2ed41FPz1CTWVyKwZqRXZYLngxzFTErgdei8QuGdS3Bpv72HGVt
-net foobar
Response:
history for addr ptV4n68gTebdUTcbpMWKhfpsGuugvEdK6bwKS8P1q9gkUCKHKKo6t2ed41FPz1CTWVyKwZqRXZYLngxzFTErgdei8QuGdS3Bpv72HGVt:
TX hash 0x31BC6C8DB3B00A719824182743554865B9AB38C0D1CCD6A85AC8075ECD6075C5
Thu Jan 25 06:38:11 2024
recv 10000000000000000000000000 BUZ from ptV4n68gTebdUTcbmp9YLvesZ9v4pddjDbHYz24CGH5mfirNynRPCqKHajj5M5ahtx6uTZpkyEqi9rcPExfSGZwrzCkkVdQuzeEzKRVj
JSON-RPC Example
Command:
curl -X POST http://rpc.cellframe.net/connect -d '{"method":"ledger", "params":["ledger;tx;-addr;ptV4n68gTebdUTcbpMWKhfpsGuugvEdK6bwKS8P1q9gkUCKHKKo6t2ed41FPz1CTWVyKwZqRXZYLngxzFTErgdei8QuGdS3Bpv72HGVt;-net;foobar"], "id":"1"}'
Response:
{
"type": 0,
"result": "history for addr ptV4n68gTebdUTcbpMWKhfpsGuugvEdK6bwKS8P1q9gkUCKHKKo6t2ed41FPz1CTWVyKwZqRXZYLngxzFTErgdei8QuGdS3Bpv72HGVt:\nTX hash 0x31BC6C8DB3B00A719824182743554865B9AB38C0D1CCD6A85AC8075ECD6075C5 \n\tThu Jan 25 06:38:11 2024\n\trecv 10000000000000000000000000 BUZ from ptV4n68gTebdUTcbmp9YLvesZ9v4pddjDbHYz24CGH5mfirNynRPCqKHajj5M5ahtx6uTZpkyEqi9rcPExfSGZwrzCkkVdQuzeEzKRVj\n\n",
"errors": null,
"id": 1
}