/cosmos/tx/v1beta1/txs/{hash}

GetTx fetches a tx by hash.

Parameters:

hash - string, hash is the tx hash to query, encoded as a hex string.

Example:

// Request
curl -X GET -H 'Content-Type: application/json' https://cosmos.blockpi.network/lcd/v1/<your-api-key>/cosmos/tx/v1beta1/txs/11D97480C2B51923ADBCC52A5FB16C36EE3A0D6F54B9D600E688AF9EB68B7DBB

// Result
{
    "tx": {
        "body": {
            "messages": [
                {
                    "@type": "/cosmos.bank.v1beta1.MsgSend",
                    "from_address": "cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs",
                    "to_address": "cosmos1psr5x3kgra5fvm4gc4l6ufykn0nl3esdjeex8n",
                    "amount": [
                        {
                            "denom": "uatom",
                            "amount": "1480000"
                        }
                    ]
                }
            ],
            "memo": "1198953800",
            "timeout_height": "0",
            "extension_options": [],
            "non_critical_extension_options": []
        },
        "auth_info": {
            "signer_infos": [
                {
                    "public_key": {
                        "@type": "/cosmos.crypto.secp256k1.PubKey",
                        "key": "AmnGyavh0adrcPyd/u5tspwQWPZSJTc/u3mFR9k+ResD"
                    },
                    "mode_info": {
                        "single": {
                            "mode": "SIGN_MODE_DIRECT"
                        }
                    },
                    "sequence": "4"
                }
            ],
            "fee": {
                "amount": [
                    {
                        "denom": "uatom",
                        "amount": "1000"
                    }
                ],
                "gas_limit": "500000",
                "payer": "",
                "granter": ""
            }
        },
        "signatures": [
            "YIpJdDghDCNt/uBQi5QHG8AQEMjnjdXRypJvVkCEgPUzkJzTGtGCN5G18ubVWf0PXzS0brmBHfS4phcm4kGYUw=="
        ]
    },
    "tx_response": {
        "height": "14090525",
        "txhash": "11D97480C2B51923ADBCC52A5FB16C36EE3A0D6F54B9D600E688AF9EB68B7DBB",
        "codespace": "",
        "code": 0,
        "data": "0A1E0A1C2F636F736D6F732E62616E6B2E763162657461312E4D736753656E64",
        "raw_log": "[{\"events\":[{\"type\":\"coin_received\",\"attributes\":[{\"key\":\"receiver\",\"value\":\"cosmos1psr5x3kgra5fvm4gc4l6ufykn0nl3esdjeex8n\"},{\"key\":\"amount\",\"value\":\"1480000uatom\"}]},{\"type\":\"coin_spent\",\"attributes\":[{\"key\":\"spender\",\"value\":\"cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs\"},{\"key\":\"amount\",\"value\":\"1480000uatom\"}]},{\"type\":\"message\",\"attributes\":[{\"key\":\"action\",\"value\":\"/cosmos.bank.v1beta1.MsgSend\"},{\"key\":\"sender\",\"value\":\"cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs\"},{\"key\":\"module\",\"value\":\"bank\"}]},{\"type\":\"transfer\",\"attributes\":[{\"key\":\"recipient\",\"value\":\"cosmos1psr5x3kgra5fvm4gc4l6ufykn0nl3esdjeex8n\"},{\"key\":\"sender\",\"value\":\"cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs\"},{\"key\":\"amount\",\"value\":\"1480000uatom\"}]}]}]",
        "logs": [
            {
                "msg_index": 0,
                "log": "",
                "events": [
                    {
                        "type": "coin_received",
                        "attributes": [
                            {
                                "key": "receiver",
                                "value": "cosmos1psr5x3kgra5fvm4gc4l6ufykn0nl3esdjeex8n"
                            },
                            {
                                "key": "amount",
                                "value": "1480000uatom"
                            }
                        ]
                    },
                    {
                        "type": "coin_spent",
                        "attributes": [
                            {
                                "key": "spender",
                                "value": "cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs"
                            },
                            {
                                "key": "amount",
                                "value": "1480000uatom"
                            }
                        ]
                    },
                    {
                        "type": "message",
                        "attributes": [
                            {
                                "key": "action",
                                "value": "/cosmos.bank.v1beta1.MsgSend"
                            },
                            {
                                "key": "sender",
                                "value": "cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs"
                            },
                            {
                                "key": "module",
                                "value": "bank"
                            }
                        ]
                    },
                    {
                        "type": "transfer",
                        "attributes": [
                            {
                                "key": "recipient",
                                "value": "cosmos1psr5x3kgra5fvm4gc4l6ufykn0nl3esdjeex8n"
                            },
                            {
                                "key": "sender",
                                "value": "cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs"
                            },
                            {
                                "key": "amount",
                                "value": "1480000uatom"
                            }
                        ]
                    }
                ]
            }
        ],
        "info": "",
        "gas_wanted": "500000",
        "gas_used": "67571",
        "tx": {
            "@type": "/cosmos.tx.v1beta1.Tx",
            "body": {
                "messages": [
                    {
                        "@type": "/cosmos.bank.v1beta1.MsgSend",
                        "from_address": "cosmos1a0d206nnylpxf8ta9kcrff5mucja7h228xwxqs",
                        "to_address": "cosmos1psr5x3kgra5fvm4gc4l6ufykn0nl3esdjeex8n",