index.getContainerByIndex RPC Method
パラメータ
目次
uint64
読み込み中...
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.getContainerByIndex",6"params": {7"index": 0,8"encoding": "hex"9}10}'
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--data-raw '{3"jsonrpc": "2.0",4"id": 1,5"method": "index.getContainerByIndex",6"params": {7"index": 0,8"encoding": "hex"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"index": 0,9"encoding": "hex",10};11const result = await provider.send("index.getContainerByIndex", 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"index": 0,9"encoding": "hex",10};11const result = await provider.send("index.getContainerByIndex", params);12コンソール.log(結果);13})();14
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"index":0,5"encoding":"hex"6}7request = w3.provider.make_request('index.getContainerByIndex', [params])8print(request)
1出典: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"index":0,5"encoding":"hex"6}7request = w3.provider.make_request('index.getContainerByIndex', [params])8print(request)