Skip to main content
GET
/
blockchain
/
transactions
/
{tx_hash}
Retrieves the status of a blockchain transaction.
curl --request GET \
  --url https://api.example.com/blockchain/transactions/{tx_hash}
{
  "gas_consumed": 1,
  "status": "<string>",
  "tx_hash": "<string>",
  "block_height": 1,
  "error_message": "<string>"
}

Path Parameters

tx_hash
string
required

Transaction hash

Response

200 - application/json

Transaction status

Response for transaction status.

gas_consumed
integer<int64>
required

Gas consumed by the transaction.

Required range: x >= 0
status
string
required

Transaction status (e.g. "confirmed", "pending", "failed").

tx_hash
string
required

On-chain transaction hash.

block_height
integer<int64> | null

Block height at which the transaction was included.

Required range: x >= 0
error_message
string | null

Error message if the transaction failed.