avax.getAtomicTx RPC Method
Parameter
txID
String
ERFORDERLICH
Wird geladen...
encoding
String
Wird geladen...
Rücksendungen
tx
String
Wird geladen...
encoding
String
Wird geladen...
blockHeight
String
Wird geladen...
Anfrage
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 Anbieter = 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);12Konsole.Protokoll(Ergebnis);13})();14
1import { ethers } from "ethers";23(async () => {4const Anbieter = 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);12Konsole.Protokoll(Ergebnis);13})();14
1aus 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)
1aus 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)
Haben Sie noch kein Konto?
Erstellen Sie Ihren Quicknode-Endpunkt in Sekundenschnelle und legen Sie los
Kostenlos loslegen