Get a transaction by ID
GET /v2/chain/tx/{txId}
GET
/v2/chain/tx/{txId}
Retrieve transaction details using the transaction ID.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” txId
required
string
The transaction ID to look up
Header Parameters
Section titled “Header Parameters ” X-API-Key
string
API Key
X-API-Secret
string
API Secret
Responses
Section titled “ Responses ”Transaction details
object
txData
required
The transaction data
string
0x123...
chainId
required
The chain ID
number
1
to
required
The recipient address
string
0x123...
from
required
The sender address
string
0x123...
contractAddress
required
The contract address (if deployed)
string
0x123...
hash
required
The transaction hash
string
0x123...
index
required
The transaction index within the block
number
1
blockHash
required
The block hash
string
0x123...
blockNumber
required
The block number
number
12345678
gasUsed
required
The gas used by this transaction
string
21000
gasPrice
required
The gas price
string
1000000000
logs
required
The transaction logs, which will include more details about the transaction
Array<object>
object
removed
boolean
data
string
transactionIndex
number
topics
Array<string>
type
required
The transaction type
number
1
status
required
The transaction status (1 for success, 0 for revert)
number
1
error
required
Error information if transaction failed
object
returnData
required
The return data
string
0x123...