avm.getTx RPC Method
Parameters
txID
String
REQUIRED
A specific transaction ID.
encoding
String
Sets the format of the returned transaction. Can be "hex" or "json". Defaults to "hex".
Returns
tx
Object
The transaction object of the requested txID.
encoding
string
The encoding format.
Request
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/X \2--header 'Content-Type: application/json' \3--data-raw '{4"jsonrpc":"2.0",5"id" :1,6"method" :"avm.getTx",7"params" :{8"txID":"9VBHzPDFeDBJGyhBbzakzXMHJnsYhyLEiSS6ee5AczR2oJcns",9"encoding": "hex"10}11}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free