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

Returns a decoded transaction and its response by hash via the Cosmos tx service.

Endpoint

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

Path Parameters

ParameterTypeDescription
hashstringTransaction hash

Example

bashexport AKASH_REST=https://shared.eu-central-1.getblock.io/<ACCESS-TOKEN>/

curl "${AKASH_REST}cosmos/tx/v1beta1/txs/3A1F9C2E7B4D8A05F6C1E3D9B2A4C6E8F0D1B3A5C7E9F2D4B6A8C0E1F3D5B7A9C"

Response

json{
    "tx": {
        "body": {
            "messages": []
        }
    },
    "tx_response": {
        "txhash": "3A1F9C2E7B4D8A05F6C1E3D9B2A4C6E8F0D1B3A5C7E9F2D4B6A8C0E1F3D5B7A9C",
        "height": "19500000",
        "code": 0,
        "gas_used": "118000"
    }
}

Response Fields

FieldTypeDescription
txobjectDecoded transaction
tx_responseobjectExecution response (height, code, gas)

Use Cases

  • Receipts: Fetch a tx by hash over REST

Error Handling

ErrorMessageDescription
400 / Bad requestBad requestA parameter was invalid
403 / RBAC: access deniedAccess deniedThe GetBlock access token is missing or incorrect