avm.getTxStatus RPC Method
參數
txID
String
載入中...
退貨
狀態
字串
載入中...
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