avm.getTx RPC Method
パラメータ
txID
文字列
必須
読み込み中...
encoding
文字列
読み込み中...
返品
tx
目的
読み込み中...
encoding
文字列
読み込み中...
リクエスト
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--ヘッダー '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}'
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--ヘッダー '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}'
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"txID": "9VBHzPDFeDBJGyhBbzakzXMHJnsYhyLEiSS6ee5AczR2oJcns",9"encoding": "hex",10};11const result = await provider.send("avm.getTx", params);12コンソール.log(結果);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": "9VBHzPDFeDBJGyhBbzakzXMHJnsYhyLEiSS6ee5AczR2oJcns",9"encoding": "hex",10};11const result = await provider.send("avm.getTx", params);12コンソール.log(結果);13})();14
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"txID":"9VBHzPDFeDBJGyhBbzakzXMHJnsYhyLEiSS6ee5AczR2oJcns",5"encoding": "hex"6}7request = w3.provider.make_request('avm.getTx', [params])8print(request)9
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"txID":"9VBHzPDFeDBJGyhBbzakzXMHJnsYhyLEiSS6ee5AczR2oJcns",5"encoding": "hex"6}7request = w3.provider.make_request('avm.getTx', [params])8print(request)9