Skip to main content

avax.getAtomicTx RPC Method

Returns the specified transaction.

Updated on
Nov 2, 2023

avax.getAtomicTx RPC Method

Parameters

txID
String
REQUIRED
The transaction ID in hex format.
encoding
String
The encoding format to use. Can only be hex when a value is provided.

Returns

tx
String
The transaction encoded to encoding.
encoding
String
The encoding format.
blockHeight
String
The height of the block which the transaction was included in.
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/C/avax \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"avax.getAtomicTx",
7
"params" :{
8
"txID":"cZbtbhQhrri34fSdFSUdSr5CjDAXGqL3qcB8VeJQvnAEa52Wj",
9
"encoding": "hex"
10
}
11
}'
12
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free