avm.getTxStatus RPC Method
매개변수
txID
문자열
로딩 중...
반품
상태
문자열
로딩 중...
accepted
문자열
로딩 중...
processing
문자열
로딩 중...
rejected
문자열
로딩 중...
unknown
문자열
로딩 중...
요청
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.getTxStatus",7"params": {8"txID": "2HHr7xUJgWiLESV7g8T3oWfWvdpWJXd4Hctj6U3KhzUN6EsgBG"9}10}'
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.getTxStatus",7"params": {8"txID": "2HHr7xUJgWiLESV7g8T3oWfWvdpWJXd4Hctj6U3KhzUN6EsgBG"9}10}'
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"txID": "2HHr7xUJgWiLESV7g8T3oWfWvdpWJXd4Hctj6U3KhzUN6EsgBG",9};10const result = await provider.send("avm.getTxStatus", params);11console.log(result);12})();13
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"txID": "2HHr7xUJgWiLESV7g8T3oWfWvdpWJXd4Hctj6U3KhzUN6EsgBG",9};10const result = await provider.send("avm.getTxStatus", params);11console.log(result);12})();13
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"txID": "2HHr7xUJgWiLESV7g8T3oWfWvdpWJXd4Hctj6U3KhzUN6EsgBG"5}6request = w3.provider.make_request('avm.getTxStatus', [params])7print(request)8
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"txID": "2HHr7xUJgWiLESV7g8T3oWfWvdpWJXd4Hctj6U3KhzUN6EsgBG"5}6request = w3.provider.make_request('avm.getTxStatus', [params])7print(request)8