Skip to main content

/cosmos/tx/v1beta1/txs/{hash} REST API Endpoint

Fetches a tx by hash.

Updated on
Aug 04, 2025

Path Parameters

hash
string
REQUIRED

The transaction hash to query, encoded as a hex string

Returns

tx
object

Transaction data

body
object

The body of the transaction

messages
array

Messages included in the transaction

@type
string

The type identifier for the outer message

grantee
string

Address of the grantee

msgs
array

Nested messages executed under authz

@type
string

The type identifier for the inner message

sender
string

Address of the sender

subaccount_id
string

Subaccount ID used in the order

spot_market_ids_to_cancel_all
array

List of spot market IDs to cancel all orders in

derivative_market_ids_to_cancel_all
array

List of derivative market IDs to cancel all orders in

spot_orders_to_cancel
array

List of spot orders to cancel

derivative_orders_to_cancel
array

List of derivative orders to cancel

spot_orders_to_create
array

List of spot orders to create

derivative_orders_to_create
array

List of derivative orders to create

market_id
string

Market ID for the order

order_info
object

Information about the order

subaccount_id
string

Subaccount ID placing the order

fee_recipient
string

Address of the fee recipient

price
string

Price for the order

quantity
string

Quantity for the order

cid
string

Client-provided order ID

order_type
string

The type of order (e.g., BUY, SELL)

margin
string

Margin provided for the order

trigger_price
string

Trigger price for conditional orders

binary_options_orders_to_cancel
array

List of binary options orders to cancel

binary_options_market_ids_to_cancel_all
array

List of binary options market IDs to cancel all orders in

binary_options_orders_to_create
array

List of binary options orders to create

memo
string

Memo field for additional info

timeout_height
string

Block height after which this transaction will not be processed

extension_options
array

Extension options for advanced transaction processing

non_critical_extension_options
array

Non-critical extension options

auth_info
object

Authorization info for the transaction

signer_infos
array

Information about transaction signers

public_key
object

Public key of the signer

@type
string

Type URL of the public key

key
string

Base64-encoded public key

mode_info
object

Signing mode information

single
object

Single signer mode

mode
string

Signing mode (e.g., SIGN_MODE_DIRECT)

sequence
string

Account sequence number

fee
object

Transaction fee information

amount
array

Amount of fees to be paid

denom
string

Denomination of the fee

amount
string

Amount of the fee

gas_limit
string

Maximum gas allowed for the transaction

payer
string

Address paying the fee

granter
string

Granter of the fee allowance

tip
null

Optional tip for transaction prioritization

signatures
array

An array of base64-encoded transaction signatures

signatures
array

An array of signatures for the transaction

tx_response
object

The tx_response object returned after broadcasting a transaction

height
string

The block height where the transaction was included

txhash
string

The transaction hash

codespace
string

A namespace for the error code

code
integer

Response code

data
string

Transaction result data

raw_log
string

Raw log output

logs
array

Array of logs emitted by the transaction

info
string

Additional execution information

gas_wanted
string

Requested gas for the transaction

gas_used
string

Gas actually used by the transaction

tx
object

The raw transaction object (decoded)

@type
string

Type URL of the transaction object

body
object

Transaction body

messages
array

List of messages included in the transaction

@type
string

Type URL of the outer message

grantee
string

Grantee address executing the authorized messages

msgs
array

Authorized inner messages

@type
string

Type URL of the inner message

sender
string

Sender address

subaccount_id
string

Subaccount ID of the sender

spot_market_ids_to_cancel_all
array

Spot market IDs for mass order cancellation

derivative_market_ids_to_cancel_all
array

Derivative market IDs for mass order cancellation

spot_orders_to_cancel
array

List of spot orders to cancel

derivative_orders_to_cancel
array

List of derivative orders to cancel

spot_orders_to_create
array

List of spot orders to create

derivative_orders_to_create
array

List of derivative orders to create

market_id
string

Market ID for the order

order_info
object

Order information

subaccount_id
string

Subaccount ID

fee_recipient
string

Address of the fee recipient

price
string

Order price

quantity
string

Order quantity

cid
string

Client-provided ID

order_type
string

Type of the order (e.g., BUY or SELL)

margin
string

Margin provided for the order

trigger_price
string

Trigger price for conditional execution

binary_options_orders_to_cancel
array

List of binary options orders to cancel

binary_options_market_ids_to_cancel_all
array

Binary options market IDs for mass order cancellation

binary_options_orders_to_create
array

List of binary options orders to create

memo
string

Memo field for additional info

timeout_height
string

Block height after which this transaction will not be processed

extension_options
array

Extension options for advanced transaction processing

non_critical_extension_options
array

Non-critical extension options

auth_info
object

Authorization info for the transaction

signer_infos
array

Info about signers of the transaction

public_key
object

Public key of the signer

@type
string

The type URL of the public key

key
string

The value of the public key

mode_info
object

Mode info for signing

single
object

Single mode info

mode
string

Signing mode

sequence
string

Sequence number of the signer

fee
object

Fee information for the transaction

amount
array

Amount of fees for the transaction

denom
string

The denomination of the fee

amount
string

The amount of the fee

gas_limit
string

The gas limit for the transaction

payer
string

The payer of the transaction fees

granter
string

The granter of the transaction fees

tip
string

The optional tip used for transaction fees paid in another denom

signatures
array

List of base64-encoded signatures

timestamp
string

Timestamp when the block was created

events
array

Events emitted during transaction execution

type
string

The type of the event

attributes
array

Key-value attribute pairs emitted with the event

key
string

Event attribute key

value
string

Event attribute value

index
boolean

Whether this attribute is indexed for querying

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free