index.getContainerById RPC Method
매개변수
id
문자열
로딩 중...
인코딩
문자열
로딩 중...
반품
id
문자열
로딩 중...
bytes
문자열
로딩 중...
타임스탬프
문자열
로딩 중...
인코딩
문자열
로딩 중...
목차
문자열
로딩 중...
요청
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--data-raw '{3"jsonrpc": "2.0",4"id": 1,5"method": "index.getContainerByID",6"params": {7"id": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",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.getContainerByID",6"params": {7"id": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",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"id": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",9"encoding": "hex",10};11const result = await provider.send("index.getContainerByID", params);12console.log(result);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"id": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",9"encoding": "hex",10};11const result = await provider.send("index.getContainerByID", params);12console.log(result);13})();14
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"id":"CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",5"encoding":"hex"6}7request = w3.provider.make_request('index.getContainerById', [params])8print(request)
1출처: web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"id":"CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",5"encoding":"hex"6}7request = w3.provider.make_request('index.getContainerById', [params])8print(request)