index.getLastAccepted RPC Method
パラメータ
encoding
文字列
読み込み中...
返品
id
文字列
読み込み中...
bytes
文字列
読み込み中...
タイムスタンプ
文字列
読み込み中...
encoding
文字列
読み込み中...
目次
文字列
読み込み中...
リクエスト
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--data-raw '{3"jsonrpc": "2.0",4"id": 1,5"method": "index.getLastAccepted",6"params": {7"encoding": "hex"8}9}'
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--data-raw '{3"jsonrpc": "2.0",4"id": 1,5"method": "index.getLastAccepted",6"params": {7"encoding": "hex"8}9}'
1import { ethers } from "ethers";23(async () => {4const provider = new ethers.JsonRpcProvider(5"https://docs-demo.avalanche-mainnet.quiknode.pro"6);7const params = {8"encoding": "hex",9};10const result = await provider.send("index.getLastAccepted", params);11コンソール.log(結果);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"encoding": "hex",9};10const result = await provider.send("index.getLastAccepted", params);11コンソール.log(結果);12})();13
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"encoding":"hex"5}6request = w3.provider.make_request('index.getLastAccepted', [params])7print(request)
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"encoding":"hex"5}6request = w3.provider.make_request('index.getLastAccepted', [params])7print(request)