avax.getAtomicTx RPC Method
Parameters
txID
String
REQUIRED
Loading...
encoding
String
Loading...
Returns
tx
String
Loading...
encoding
String
Loading...
blockHeight
String
Loading...
Request
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \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
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \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
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"txID": "cZbtbhQhrri34fSdFSUdSr5CjDAXGqL3qcB8VeJQvnAEa52Wj",9"encoding": "hex",10};11const result = await provider.send("avax.getAtomicTx", params);12console.log(result);13})();14
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"txID": "cZbtbhQhrri34fSdFSUdSr5CjDAXGqL3qcB8VeJQvnAEa52Wj",9"encoding": "hex",10};11const result = await provider.send("avax.getAtomicTx", params);12console.log(result);13})();14
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"txID":"cZbtbhQhrri34fSdFSUdSr5CjDAXGqL3qcB8VeJQvnAEa52Wj",5"encoding": "hex"6}7request = w3.provider.make_request('avax.getAtomicTx', [params])8print(request)
1from web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"txID":"cZbtbhQhrri34fSdFSUdSr5CjDAXGqL3qcB8VeJQvnAEa52Wj",5"encoding": "hex"6}7request = w3.provider.make_request('avax.getAtomicTx', [params])8print(request)
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free