Get transactions by hash.
Parameters
hash
- string, required transaction hash to retrieveprove
- boolean, include proofs of the transactions inclusion in the block. Default value =false
Result
Transaction info.
Example
Request
curl <your-tendermint-endpoint>/tx?hash=0x69941398218E5858206C53CDC707B07479E26E3A8B89DC7B4E09CDC6BCDFDF6E&prove=true
Return
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"hash": "69941398218E5858206C53CDC707B07479E26E3A8B89DC7B4E09CDC6BCDFDF6E",
"height": "11347222",
"index": 3,
"tx_result": {
"code": 0,
"data": "CisKKS9pYmMuYXBwbGljYXRpb25zLnRyYW5zZmVyLnYxLk1zZ1RyYW5zZmVy",
"log": "[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"cosmos1x54ltnyg88k0ejmk8ytwrhd3ltm84xehrnlslf\"},{\"key\":\"amount\",\"value\":\"500000uatom\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"cosmos15vcg5gp3zcpcsftavn4nr68w5zy99zvxcg2hy3\"},{\"key\":\"amount\",\"value\":\"500000uatom\"}]},{\"type\":\"ibc_transfer\",\"attributes\":[{\"key\":\"sender\",\"value\":\"cosmos15vcg5gp3zcpcsftavn4nr68w5zy99zvxcg2hy3\"},{\"key\":\"receiver\",\"value\":\"osmo15vcg5gp3zcpcsftavn4nr68w5zy99zvxsne8jr\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/ibc.applications.transfer.v1.MsgTransfer\"},{\"key\":\"sender\",\"value\":\"cosmos15vcg5gp3zcpcsftavn4nr68w5zy99zvxcg2hy3\"},{\"key\":\"module\",\"value\":\"ibc_channel\"},{\"key\":\"module\",\"value\":\"transfer\"}]},{\"type\":\"send_packet\",\"attributes\":[{\"key\":\"packet_data\",\"value\":\"{\\\"amount\\\":\\\"500000\\\",\\\"denom\\\":\\\"uatom\\\",\\\"receiver\\\":\\\"osmo15vcg5gp3zcpcsftavn4nr68w5zy99zvxsne8jr\\\",\\\"sender\\\":\\\"cosmos15vcg5gp3zcpcsftavn4nr68w5zy99zvxcg2hy3\\\"}\"},{\"key\":\"packet_data_hex\",\"value\":\"7b22616d6f756e74223a22353030303030222c2264656e6f6d223a227561746f6d222c227265636569766572223a226f736d6f3135766367356770337a63706373667461766e346e72363877357a7939397a7678736e65386a72222c2273656e646572223a22636f736d6f733135766367356770337a63706373667461766e346e72363877357a7939397a7678636732687933227d\"},{\"key\":\"packet_timeout_height\",\"value\":\"1-5247125\"},{\"key\":\"packet_timeout_timestamp\",\"value\":\"0\"},{\"key\":\"packet_sequence\",\"value\":\"1151214\"},{\"key\":\"packet_src_port\",\"value\":\"transfer\"},{\"key\":\"packet_src_channel\",\"value\":\"channel-141\"},{\"key\":\"packet_dst_port\",\"value\":\"transfer\"},{\"key\":\"packet_dst_channel\",\"value\":\"channel-0\"},{\"key\":\"packet_channel_ordering\",\"value\":\"ORDER_UNORDERED\"},{\"key\":\"packet_connection\",\"value\":\"connection-257\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"cosmos1x54ltnyg88k0ejmk8ytwrhd3ltm84xehrnlslf\"},{\"key\":\"sender\",\"value\":\"cosmos15vcg5gp3zcpcsftavn4nr68w5zy99zvxcg2hy3\"},{\"key\":\"amount\",\"value\":\"500000uatom\"}]}]}]",
"info": "",
"gas_wanted": "450000",
"gas_used": "95720",
"events": [
{
"type": "coin_spent",
"attributes": [
{
"key": "c3BlbmRlcg==",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkz",
"index": true
},
{
"key": "YW1vdW50",
"value": "MTEyNTB1YXRvbQ==",
"index": true
}
]
},
{
"type": "coin_received",
"attributes": [
{
"key": "cmVjZWl2ZXI=",
"value": "Y29zbW9zMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsc2VycXRh",
"index": true
},
{
"key": "YW1vdW50",
"value": "MTEyNTB1YXRvbQ==",
"index": true
}
]
},
{
"type": "transfer",
"attributes": [
{
"key": "cmVjaXBpZW50",
"value": "Y29zbW9zMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsc2VycXRh",
"index": true
},
{
"key": "c2VuZGVy",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkz",
"index": true
},
{
"key": "YW1vdW50",
"value": "MTEyNTB1YXRvbQ==",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "c2VuZGVy",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkz",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "ZmVl",
"value": "MTEyNTB1YXRvbQ==",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "YWNjX3NlcQ==",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkzLzA=",
"index": true
}
]
},
{
"type": "tx",
"attributes": [
{
"key": "c2lnbmF0dXJl",
"value": "d2h3cmZTTDhTUi9RdVNObDRBZEVSeFF1NUx4dDgyMTZIOWdFSEJXWU9zWUtsclcrN1ozN2VsTDVZMmlnSXJvRjloV1ltT2xQVGxVZC9lRy9sNTgxcEE9PQ==",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "YWN0aW9u",
"value": "L2liYy5hcHBsaWNhdGlvbnMudHJhbnNmZXIudjEuTXNnVHJhbnNmZXI=",
"index": true
}
]
},
{
"type": "coin_spent",
"attributes": [
{
"key": "c3BlbmRlcg==",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkz",
"index": true
},
{
"key": "YW1vdW50",
"value": "NTAwMDAwdWF0b20=",
"index": true
}
]
},
{
"type": "coin_received",
"attributes": [
{
"key": "cmVjZWl2ZXI=",
"value": "Y29zbW9zMXg1NGx0bnlnODhrMGVqbWs4eXR3cmhkM2x0bTg0eGVocm5sc2xm",
"index": true
},
{
"key": "YW1vdW50",
"value": "NTAwMDAwdWF0b20=",
"index": true
}
]
},
{
"type": "transfer",
"attributes": [
{
"key": "cmVjaXBpZW50",
"value": "Y29zbW9zMXg1NGx0bnlnODhrMGVqbWs4eXR3cmhkM2x0bTg0eGVocm5sc2xm",
"index": true
},
{
"key": "c2VuZGVy",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkz",
"index": true
},
{
"key": "YW1vdW50",
"value": "NTAwMDAwdWF0b20=",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "c2VuZGVy",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkz",
"index": true
}
]
},
{
"type": "send_packet",
"attributes": [
{
"key": "cGFja2V0X2RhdGE=",
"value": "eyJhbW91bnQiOiI1MDAwMDAiLCJkZW5vbSI6InVhdG9tIiwicmVjZWl2ZXIiOiJvc21vMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4c25lOGpyIiwic2VuZGVyIjoiY29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkzIn0=",
"index": true
},
{
"key": "cGFja2V0X2RhdGFfaGV4",
"value": "N2IyMjYxNmQ2Zjc1NmU3NDIyM2EyMjM1MzAzMDMwMzAzMDIyMmMyMjY0NjU2ZTZmNmQyMjNhMjI3NTYxNzQ2ZjZkMjIyYzIyNzI2NTYzNjU2OTc2NjU3MjIyM2EyMjZmNzM2ZDZmMzEzNTc2NjM2NzM1Njc3MDMzN2E2MzcwNjM3MzY2NzQ2MTc2NmUzNDZlNzIzNjM4NzczNTdhNzkzOTM5N2E3Njc4NzM2ZTY1Mzg2YTcyMjIyYzIyNzM2NTZlNjQ2NTcyMjIzYTIyNjM2ZjczNmQ2ZjczMzEzNTc2NjM2NzM1Njc3MDMzN2E2MzcwNjM3MzY2NzQ2MTc2NmUzNDZlNzIzNjM4NzczNTdhNzkzOTM5N2E3Njc4NjM2NzMyNjg3OTMzMjI3ZA==",
"index": true
},
{
"key": "cGFja2V0X3RpbWVvdXRfaGVpZ2h0",
"value": "MS01MjQ3MTI1",
"index": true
},
{
"key": "cGFja2V0X3RpbWVvdXRfdGltZXN0YW1w",
"value": "MA==",
"index": true
},
{
"key": "cGFja2V0X3NlcXVlbmNl",
"value": "MTE1MTIxNA==",
"index": true
},
{
"key": "cGFja2V0X3NyY19wb3J0",
"value": "dHJhbnNmZXI=",
"index": true
},
{
"key": "cGFja2V0X3NyY19jaGFubmVs",
"value": "Y2hhbm5lbC0xNDE=",
"index": true
},
{
"key": "cGFja2V0X2RzdF9wb3J0",
"value": "dHJhbnNmZXI=",
"index": true
},
{
"key": "cGFja2V0X2RzdF9jaGFubmVs",
"value": "Y2hhbm5lbC0w",
"index": true
},
{
"key": "cGFja2V0X2NoYW5uZWxfb3JkZXJpbmc=",
"value": "T1JERVJfVU5PUkRFUkVE",
"index": true
},
{
"key": "cGFja2V0X2Nvbm5lY3Rpb24=",
"value": "Y29ubmVjdGlvbi0yNTc=",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "bW9kdWxl",
"value": "aWJjX2NoYW5uZWw=",
"index": true
}
]
},
{
"type": "ibc_transfer",
"attributes": [
{
"key": "c2VuZGVy",
"value": "Y29zbW9zMTV2Y2c1Z3AzemNwY3NmdGF2bjRucjY4dzV6eTk5enZ4Y2cyaHkz",
"index": true
},
{
"key": "cmVjZWl2ZXI=",
"value": "b3NtbzE1dmNnNWdwM3pjcGNzZnRhdm40bnI2OHc1enk5OXp2eHNuZThqcg==",
"index": true
}
]
},
{
"type": "message",
"attributes": [
{
"key": "bW9kdWxl",
"value": "dHJhbnNmZXI=",
"index": true
}
]
}
],
"codespace": ""
},
"tx": "Cr4BCrsBCikvaWJjLmFwcGxpY2F0aW9ucy50cmFuc2Zlci52MS5Nc2dUcmFuc2ZlchKNAQoIdHJhbnNmZXISC2NoYW5uZWwtMTQxGg8KBXVhdG9tEgY1MDAwMDAiLWNvc21vczE1dmNnNWdwM3pjcGNzZnRhdm40bnI2OHc1enk5OXp2eGNnMmh5Myorb3NtbzE1dmNnNWdwM3pjcGNzZnRhdm40bnI2OHc1enk5OXp2eHNuZThqcjIHCAEQlaHAAhJmCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECWkEglW8J3mOBjr83+AE+o56gGbd2camYtfq798H8Yv0SBAoCCH8SFAoOCgV1YXRvbRIFMTEyNTAQ0LsbGkDCHCt9IvxJH9C5I2XgB0RHFC7kvG3zbXof2AQcFZg6xgqWtb7tnft6UvljaKAiugX2FZiY6U9OVR394b+XnzWk",
"proof": {
"root_hash": "41FADEF5F1DE0D6EF9867BE1BA773E6D52C423447F4FEDDC303BAA19373A11DD",
"data": "Cr4BCrsBCikvaWJjLmFwcGxpY2F0aW9ucy50cmFuc2Zlci52MS5Nc2dUcmFuc2ZlchKNAQoIdHJhbnNmZXISC2NoYW5uZWwtMTQxGg8KBXVhdG9tEgY1MDAwMDAiLWNvc21vczE1dmNnNWdwM3pjcGNzZnRhdm40bnI2OHc1enk5OXp2eGNnMmh5Myorb3NtbzE1dmNnNWdwM3pjcGNzZnRhdm40bnI2OHc1enk5OXp2eHNuZThqcjIHCAEQlaHAAhJmCk4KRgofL2Nvc21vcy5jcnlwdG8uc2VjcDI1NmsxLlB1YktleRIjCiECWkEglW8J3mOBjr83+AE+o56gGbd2camYtfq798H8Yv0SBAoCCH8SFAoOCgV1YXRvbRIFMTEyNTAQ0LsbGkDCHCt9IvxJH9C5I2XgB0RHFC7kvG3zbXof2AQcFZg6xgqWtb7tnft6UvljaKAiugX2FZiY6U9OVR394b+XnzWk",
"proof": {
"total": "5",
"index": "3",
"leaf_hash": "ZDvVq9TaYbzPnf/oQdoDnvucz/vw+ahLZ5qx6t4XrmI=",
"aunts": [
"ZndOYFmD5nNK+evDPmE4qsOK2bAehqIDxkKvC5cLepg=",
"nLL9e5cSweXpocupIJzX3kRz8yfWNhHb4/h9u2iOgaY=",
"qfqbSeAse08O2YCf1IoDatRiR4b8mPPsjZJMs7gMjVE="
]
}
}
}
}