Shows all transactions history for the specified network.
## Request Structure
`JSON object:`
```JSON
{
"method": "tx_history",
"subcommand": ["tx_history"],
"arguments": {
"all": "null",
"net": "network_name",
"chain": "chain_name",
"limit": "number",
"offset": "number",
"head": "null",
"tail": "null"
},
"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 the chain (`main` or `zerochain`)
**`limit`** - number of elements being printed `optional`
**`offset`** - number of the element from which printing will be started `optional`
**`head`** - shows transactions list starting from the first one `optional`
**`tail`** - shows transactions list startinf from the last one `optional`
### Curl Example
`Request:`
```actionscript
curl --unix-socket /opt/cellframe-node/var/run/node_cli -X POST http://localhost/connect -d '
{
"method": "tx_history",
"subcommand": ["tx_history"],
"arguments": {
"all": "null",
"net": "Backbone",
"tail": "null",
"limit": "2"
},
"id": "1"
}'
```
`Response:`
```json
{
"type": 2,
"result": [
[
{
"limit": 2
},
{
"status": "DECLINED",
"hash": "0x0ED60105E31C7E1A40EE1B886F106E122534230258E9D6191DB34C39B35AA2B4",
"ret_code": 0,
"ret_code_str": "No error",
"action": "UNKNOWN",
"batching": "false",
"first transaction": "",
"tx created": "Mon, 05 May 2025 11:05:40 +0700",
"token ticker": "",
"ITEMS": [
{
"item type": "IN",
"Tx prev hash": "0x3B6494C09E0D62B2BFC01340212A03B71FEBEF8D213B41D0F33F3EABCF228787",
"Tx out prev idx": 3
},
{
"item_type": "OUT EXT",
"addr": "Rj7J7MiX2bWy8sNyXxjxcU1w35hWtgKZn2UdX75qsWhDfu91TQSDqNvx9LVgy3kFZvh4jmGsfYdgXZCkuBDvNCFmyaKe73ej16BfagX5",
"token": "CELL",
"coins": "0.00001",
"value": "10000000000000"
},
{
"item_type": "OUT EXT",
"addr": "Rj7J7MiX2bWy8sNyX38bB86KTFUnSn7sdKDsTFa2RJyQTDWFaebrj6BucT7Wa5CSq77zwRAwevbiKy1sv1RBGTonM83D3xPDwoyGasZ7",
"token": "CELL",
"coins": "0.002",
"value": "2000000000000000"
},
{
"item type": "OUT COND",
"ts_expires": "never",
"coins": "0.00001",
"value": "10000000000000",
"subtype": "DAP_CHAIN_TX_OUT_COND_SUBTYPE_FEE",
"uid": "0x0000000000000000",
"tsd_size": 0
},
{
"item_type": "OUT EXT",
"addr": "Rj7J7MiX2bWy8sNyXEmkC6VGjzCYDm4AzSeSvFmiQS47Qva64h1VkH4tRL2M4VQ7LkQfdQbR78ZhtsjPFEN5jrtVpxCYzoFNWLindcMn",
"token": "CELL",
"coins": "9.586764591253703701",
"value": "9586764591253703701"
},
{
"item type": "SIG",
"Type": "sig_dil",
"Public key hash": "0x20D45193CB0D0B490EF386A152378C0BDF05F4BB6B5E7A07A8CFD22B7166FAA2",
"Public key size": 1196,
"Signature size": 2096,
"Sender addr": "Rj7J7MiX2bWy8sNyXEmkC6VGjzCYDm4AzSeSvFmiQS47Qva64h1VkH4tRL2M4VQ7LkQfdQbR78ZhtsjPFEN5jrtVpxCYzoFNWLindcMn"
}
],
"tx number": 1
},
{
"status": "DECLINED",
"hash": "0x390D1600E01BB51AC181D6A71910BAD7DAAE0B89F69E6CE9A61DA155D6983EA0",
"ret_code": 0,
"ret_code_str": "No error",
"action": "UNKNOWN",
"batching": "false",
"first transaction": "",
"tx created": "Mon, 05 May 2025 11:03:38 +0700",
"token ticker": "",
"ITEMS": [
{
"item type": "IN",
"Tx prev hash": "0x3B6494C09E0D62B2BFC01340212A03B71FEBEF8D213B41D0F33F3EABCF228787",
"Tx out prev idx": 3
},
{
"item_type": "OUT EXT",
"addr": "Rj7J7MiX2bWy8sNyYFf7FuZzDP3ZDF8hZx5kyQ4CK1tUDugjE66kXrwApuB2pHJ1YPGtwzxcRuSivF1zsggJeZTiSKdayL4eZNxveK4p",
"token": "CELL",
"coins": "0.00001",
"value": "10000000000000"
},
{
"item_type": "OUT EXT",
"addr": "Rj7J7MiX2bWy8sNyX38bB86KTFUnSn7sdKDsTFa2RJyQTDWFaebrj6BucT7Wa5CSq77zwRAwevbiKy1sv1RBGTonM83D3xPDwoyGasZ7",
"token": "CELL",
"coins": "0.002",
"value": "2000000000000000"
},
{
"item type": "OUT COND",
"ts_expires": "never",
"coins": "0.00001",
"value": "10000000000000",
"subtype": "DAP_CHAIN_TX_OUT_COND_SUBTYPE_FEE",
"uid": "0x0000000000000000",
"tsd_size": 0
},
{
"item_type": "OUT EXT",
"addr": "Rj7J7MiX2bWy8sNyXEmkC6VGjzCYDm4AzSeSvFmiQS47Qva64h1VkH4tRL2M4VQ7LkQfdQbR78ZhtsjPFEN5jrtVpxCYzoFNWLindcMn",
"token": "CELL",
"coins": "9.586764591253703701",
"value": "9586764591253703701"
},
{
"item type": "SIG",
"Type": "sig_dil",
"Public key hash": "0x20D45193CB0D0B490EF386A152378C0BDF05F4BB6B5E7A07A8CFD22B7166FAA2",
"Public key size": 1196,
"Signature size": 2096,
"Sender addr": "Rj7J7MiX2bWy8sNyXEmkC6VGjzCYDm4AzSeSvFmiQS47Qva64h1VkH4tRL2M4VQ7LkQfdQbR78ZhtsjPFEN5jrtVpxCYzoFNWLindcMn"
}
],
"tx number": 2
}
],
{
"network": "Backbone",
"chain": "main",
"tx_sum": 2,
"accepted_tx": 0,
"rejected_tx": 2
}
],
"id": 1
}
```