cosmos/tx/v1beta1/txs/{hash}

Returns a tx by hash.

Parameters

Object NameRequiredTypeDetail
HASHStringThe tx hash to query, encoded as a hex string
/cosmos/tx/v1beta1/txs/85D6DDE332108B43F3284B5E40063A5E294609B763ED9A784AC939ACC2128673

Result

A tx by hash.

Example

Request

curl <your-rest-endpoint>/cosmos/tx/v1beta1/txs/85D6DDE332108B43F3284B5E40063A5E294609B763ED9A784AC939ACC2128673 \
  -X GET \
  -H "accept: application/json"

Return

{
    "tx": {
        "body": {
            "messages": [
                {
                    "@type": "/ibc.applications.transfer.v1.MsgTransfer",
                    "source_port": "transfer",
                    "source_channel": "channel-141",
                    "token": {
                        "denom": "uatom",
                        "amount": "9000000"
                    },
                    "sender": "cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr",
                    "receiver": "osmo1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v0mdxm3",
                    "timeout_height": {
                        "revision_number": "1",
                        "revision_height": "8646942"
                    },
                    "timeout_timestamp": "1678488015745103556",
                    "memo": ""
                }
            ],
            "memo": "",
            "timeout_height": "0",
            "extension_options": [],
            "non_critical_extension_options": []
        },
        "auth_info": {
            "signer_infos": [
                {
                    "public_key": {
                        "@type": "/cosmos.crypto.secp256k1.PubKey",
                        "key": "AlVlHFdo2rQRbmJCKIdryVidDoREr0h7cUfnuGG7CnYl"
                    },
                    "mode_info": {
                        "single": {
                            "mode": "SIGN_MODE_DIRECT"
                        }
                    },
                    "sequence": "5824"
                }
            ],
            "fee": {
                "amount": [
                    {
                        "denom": "uatom",
                        "amount": "1800"
                    }
                ],
                "gas_limit": "120000",
                "payer": "",
                "granter": ""
            }
        },
        "signatures": [
            "8OZbTlSDqvrWlcMncOOmimsdO0FkhZfjzfrtigQ+CDM5xFkTup3lHO6R6heDaZdWGokZggYN0gVo6cOc2fWEwQ=="
        ]
    },
    "tx_response": {
        "height": "14410092",
        "txhash": "85D6DDE332108B43F3284B5E40063A5E294609B763ED9A784AC939ACC2128673",
        "codespace": "",
        "code": 0,
        "data": "0A310A292F6962632E6170706C69636174696F6E732E7472616E736665722E76312E4D73675472616E73666572120408DF8B68",
        "raw_log": "[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"cosmos1x54ltnyg88k0ejmk8ytwrhd3ltm84xehrnlslf\"},{\"key\":\"amount\",\"value\":\"9000000uatom\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr\"},{\"key\":\"amount\",\"value\":\"9000000uatom\"}]},{\"type\":\"ibc_transfer\",\"attributes\":[{\"key\":\"sender\",\"value\":\"cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr\"},{\"key\":\"receiver\",\"value\":\"osmo1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v0mdxm3\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/ibc.applications.transfer.v1.MsgTransfer\"},{\"key\":\"sender\",\"value\":\"cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr\"},{\"key\":\"module\",\"value\":\"ibc_channel\"},{\"key\":\"module\",\"value\":\"transfer\"}]},{\"type\":\"send_packet\",\"attributes\":[{\"key\":\"packet_data\",\"value\":\"{\\\"amount\\\":\\\"9000000\\\",\\\"denom\\\":\\\"uatom\\\",\\\"receiver\\\":\\\"osmo1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v0mdxm3\\\",\\\"sender\\\":\\\"cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr\\\"}\"},{\"key\":\"packet_data_hex\",\"value\":\"7b22616d6f756e74223a2239303030303030222c2264656e6f6d223a227561746f6d222c227265636569766572223a226f736d6f317a75347961306c6a6d6b677a6d34757276716e74397a6138666a6c73716c3976306d64786d33222c2273656e646572223a22636f736d6f73317a75347961306c6a6d6b677a6d34757276716e74397a6138666a6c73716c39763871376b6472227d\"},{\"key\":\"packet_timeout_height\",\"value\":\"1-8646942\"},{\"key\":\"packet_timeout_timestamp\",\"value\":\"1678488015745103556\"},{\"key\":\"packet_sequence\",\"value\":\"1705439\"},{\"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\":\"cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr\"},{\"key\":\"amount\",\"value\":\"9000000uatom\"}]}]}]",
        "logs": [
            {
                "msg_index": 0,
                "log": "",
                "events": [
                    {
                        "type": "coin_received",
                        "attributes": [
                            {
                                "key": "receiver",
                                "value": "cosmos1x54ltnyg88k0ejmk8ytwrhd3ltm84xehrnlslf"
                            },
                            {
                                "key": "amount",
                                "value": "9000000uatom"
                            }
                        ]
                    },
                    {
                        "type": "coin_spent",
                        "attributes": [
                            {
                                "key": "spender",
                                "value": "cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr"
                            },
                            {
                                "key": "amount",
                                "value": "9000000uatom"
                            }
                        ]
                    },
                    {
                        "type": "ibc_transfer",
                        "attributes": [
                            {
                                "key": "sender",
                                "value": "cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr"
                            },
                            {
                                "key": "receiver",
                                "value": "osmo1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v0mdxm3"
                            }
                        ]
                    },
                    {
                        "type": "message",
                        "attributes": [
                            {
                                "key": "action",
                                "value": "/ibc.applications.transfer.v1.MsgTransfer"
                            },
                            {
                                "key": "sender",
                                "value": "cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr"
                            },
                            {
                                "key": "module",
                                "value": "ibc_channel"
                            },
                            {
                                "key": "module",
                                "value": "transfer"
                            }
                        ]
                    },
                    {
                        "type": "send_packet",
                        "attributes": [
                            {
                                "key": "packet_data",
                                "value": "{\"amount\":\"9000000\",\"denom\":\"uatom\",\"receiver\":\"osmo1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v0mdxm3\",\"sender\":\"cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr\"}"
                            },
                            {
                                "key": "packet_data_hex",
                                "value": "7b22616d6f756e74223a2239303030303030222c2264656e6f6d223a227561746f6d222c227265636569766572223a226f736d6f317a75347961306c6a6d6b677a6d34757276716e74397a6138666a6c73716c3976306d64786d33222c2273656e646572223a22636f736d6f73317a75347961306c6a6d6b677a6d34757276716e74397a6138666a6c73716c39763871376b6472227d"
                            },
                            {
                                "key": "packet_timeout_height",
                                "value": "1-8646942"
                            },
                            {
                                "key": "packet_timeout_timestamp",
                                "value": "1678488015745103556"
                            },
                            {
                                "key": "packet_sequence",
                                "value": "1705439"
                            },
                            {
                                "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": "cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr"
                            },
                            {
                                "key": "amount",
                                "value": "9000000uatom"
                            }
                        ]
                    }
                ]
            }
        ],
        "info": "",
        "gas_wanted": "120000",
        "gas_used": "95584",
        "tx": {
            "@type": "/cosmos.tx.v1beta1.Tx",
            "body": {
                "messages": [
                    {
                        "@type": "/ibc.applications.transfer.v1.MsgTransfer",
                        "source_port": "transfer",
                        "source_channel": "channel-141",
                        "token": {
                            "denom": "uatom",
                            "amount": "9000000"
                        },
                        "sender": "cosmos1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v8q7kdr",
                        "receiver": "osmo1zu4ya0ljmkgzm4urvqnt9za8fjlsql9v0mdxm3",
                        "timeout_height": {
                            "revision_number": "1",
                            "revision_height": "8646942"
                        },
                        "timeout_timestamp": "1678488015745103556",
                        "memo": ""
                    }
                ],
                "memo": "",
                "timeout_height": "0",
                "extension_options": [],
                "non_critical_extension_options": []
            },
            "auth_info": {
                "signer_infos": [
                    {
                        "public_key": {
                            "@type": "/cosmos.crypto.secp256k1.PubKey",
                            "key": "AlVlHFdo2rQRbmJCKIdryVidDoREr0h7cUfnuGG7CnYl"
                        },
                        "mode_info": {
                            "single": {
                                "mode": "SIGN_MODE_DIRECT"
                            }
                        },
                        "sequence": "5824"
                    }
                ],
                "fee": {
                    "amount": [
                        {
                            "denom": "uatom",
                            "amount": "1800"
                        }
                    ],
                    "gas_limit": "120000",
                    "payer": "",
                    "granter": ""
                }
            },
            "signatures": [
                "8OZbTlSDqvrWlcMncOOmimsdO0FkhZfjzfrtigQ+CDM5xFkTup3lHO6R6heDaZdWGokZggYN0gVo6cOc2fWEwQ=="
            ]
        },
        "timestamp": "2023-03-10T22:30:11Z",
        "events": [
            {
                "type": "coin_spent",
                "attributes": [
                    {
                        "key": "c3BlbmRlcg==",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "MTgwMHVhdG9t",
                        "index": true
                    }
                ]
            },
            {
                "type": "coin_received",
                "attributes": [
                    {
                        "key": "cmVjZWl2ZXI=",
                        "value": "Y29zbW9zMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsc2VycXRh",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "MTgwMHVhdG9t",
                        "index": true
                    }
                ]
            },
            {
                "type": "transfer",
                "attributes": [
                    {
                        "key": "cmVjaXBpZW50",
                        "value": "Y29zbW9zMTd4cGZ2YWttMmFtZzk2MnlsczZmODR6M2tlbGw4YzVsc2VycXRh",
                        "index": true
                    },
                    {
                        "key": "c2VuZGVy",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "MTgwMHVhdG9t",
                        "index": true
                    }
                ]
            },
            {
                "type": "message",
                "attributes": [
                    {
                        "key": "c2VuZGVy",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    }
                ]
            },
            {
                "type": "tx",
                "attributes": [
                    {
                        "key": "ZmVl",
                        "value": "MTgwMHVhdG9t",
                        "index": true
                    },
                    {
                        "key": "ZmVlX3BheWVy",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    }
                ]
            },
            {
                "type": "tx",
                "attributes": [
                    {
                        "key": "YWNjX3NlcQ==",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2RyLzU4MjQ=",
                        "index": true
                    }
                ]
            },
            {
                "type": "tx",
                "attributes": [
                    {
                        "key": "c2lnbmF0dXJl",
                        "value": "OE9aYlRsU0RxdnJXbGNNbmNPT21pbXNkTzBGa2haZmp6ZnJ0aWdRK0NETTV4RmtUdXAzbEhPNlI2aGVEYVpkV0dva1pnZ1lOMGdWbzZjT2MyZldFd1E9PQ==",
                        "index": true
                    }
                ]
            },
            {
                "type": "message",
                "attributes": [
                    {
                        "key": "YWN0aW9u",
                        "value": "L2liYy5hcHBsaWNhdGlvbnMudHJhbnNmZXIudjEuTXNnVHJhbnNmZXI=",
                        "index": true
                    }
                ]
            },
            {
                "type": "coin_spent",
                "attributes": [
                    {
                        "key": "c3BlbmRlcg==",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "OTAwMDAwMHVhdG9t",
                        "index": true
                    }
                ]
            },
            {
                "type": "coin_received",
                "attributes": [
                    {
                        "key": "cmVjZWl2ZXI=",
                        "value": "Y29zbW9zMXg1NGx0bnlnODhrMGVqbWs4eXR3cmhkM2x0bTg0eGVocm5sc2xm",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "OTAwMDAwMHVhdG9t",
                        "index": true
                    }
                ]
            },
            {
                "type": "transfer",
                "attributes": [
                    {
                        "key": "cmVjaXBpZW50",
                        "value": "Y29zbW9zMXg1NGx0bnlnODhrMGVqbWs4eXR3cmhkM2x0bTg0eGVocm5sc2xm",
                        "index": true
                    },
                    {
                        "key": "c2VuZGVy",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    },
                    {
                        "key": "YW1vdW50",
                        "value": "OTAwMDAwMHVhdG9t",
                        "index": true
                    }
                ]
            },
            {
                "type": "message",
                "attributes": [
                    {
                        "key": "c2VuZGVy",
                        "value": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    }
                ]
            },
            {
                "type": "send_packet",
                "attributes": [
                    {
                        "key": "cGFja2V0X2RhdGE=",
                        "value": "eyJhbW91bnQiOiI5MDAwMDAwIiwiZGVub20iOiJ1YXRvbSIsInJlY2VpdmVyIjoib3NtbzF6dTR5YTBsam1rZ3ptNHVydnFudDl6YThmamxzcWw5djBtZHhtMyIsInNlbmRlciI6ImNvc21vczF6dTR5YTBsam1rZ3ptNHVydnFudDl6YThmamxzcWw5djhxN2tkciJ9",
                        "index": true
                    },
                    {
                        "key": "cGFja2V0X2RhdGFfaGV4",
                        "value": "N2IyMjYxNmQ2Zjc1NmU3NDIyM2EyMjM5MzAzMDMwMzAzMDMwMjIyYzIyNjQ2NTZlNmY2ZDIyM2EyMjc1NjE3NDZmNmQyMjJjMjI3MjY1NjM2NTY5NzY2NTcyMjIzYTIyNmY3MzZkNmYzMTdhNzUzNDc5NjEzMDZjNmE2ZDZiNjc3YTZkMzQ3NTcyNzY3MTZlNzQzOTdhNjEzODY2NmE2YzczNzE2YzM5NzYzMDZkNjQ3ODZkMzMyMjJjMjI3MzY1NmU2NDY1NzIyMjNhMjI2MzZmNzM2ZDZmNzMzMTdhNzUzNDc5NjEzMDZjNmE2ZDZiNjc3YTZkMzQ3NTcyNzY3MTZlNzQzOTdhNjEzODY2NmE2YzczNzE2YzM5NzYzODcxMzc2YjY0NzIyMjdk",
                        "index": true
                    },
                    {
                        "key": "cGFja2V0X3RpbWVvdXRfaGVpZ2h0",
                        "value": "MS04NjQ2OTQy",
                        "index": true
                    },
                    {
                        "key": "cGFja2V0X3RpbWVvdXRfdGltZXN0YW1w",
                        "value": "MTY3ODQ4ODAxNTc0NTEwMzU1Ng==",
                        "index": true
                    },
                    {
                        "key": "cGFja2V0X3NlcXVlbmNl",
                        "value": "MTcwNTQzOQ==",
                        "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": "Y29zbW9zMXp1NHlhMGxqbWtnem00dXJ2cW50OXphOGZqbHNxbDl2OHE3a2Ry",
                        "index": true
                    },
                    {
                        "key": "cmVjZWl2ZXI=",
                        "value": "b3NtbzF6dTR5YTBsam1rZ3ptNHVydnFudDl6YThmamxzcWw5djBtZHhtMw==",
                        "index": true
                    }
                ]
            },
            {
                "type": "message",
                "attributes": [
                    {
                        "key": "bW9kdWxl",
                        "value": "dHJhbnNmZXI=",
                        "index": true
                    }
                ]
            }
        ]
    }
}