/cosmos/tx/v1beta1/txs - Axelar

Submits a signed, protobuf-encoded transaction for inclusion. The broadcast mode selects how long the node waits.

Endpoint

httpPOST /cosmos/tx/v1beta1/txs

Example

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

curl --location --request POST "${AKASH_REST}cosmos/tx/v1beta1/txs" \
--header 'Content-Type: application/json' \
--data-raw '{
    "tx_bytes": "Cr0BCroBChwvY29zbW9zLmJhbmsudjFiZXRhMS5Nc2dTZW5k...",
    "mode": "BROADCAST_MODE_SYNC"
}'

Response

json{
    "tx_response": {
        "txhash": "3A1F9C2E7B4D8A05F6C1E3D9B2A4C6E8F0D1B3A5C7E9F2D4B6A8C0E1F3D5B7A9C",
        "code": 0,
        "raw_log": "[]"
    }
}

Response Fields

FieldTypeDescription
tx_response.txhashstringHash to track the transaction
tx_response.codeinteger0 = accepted; non-zero is an error

Use Cases

  • Submission: Broadcast a signed transaction over REST
  • Mode Control: Choose sync vs async
  • Wallets: Submit user-signed transactions

Error Handling

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