index.getIndex RPC Method
Parâmetros
containerID
String
A carregar...
encoding
String
A carregar...
Devoluções
índice
cadeia de caracteres
A carregar...
Pedido
1curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro \2--data-raw '{3"jsonrpc": "2.0",4"id": 1,5"method": "index.getIndex",6"params": {7"containerID": "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.getIndex",6"params": {7"containerID": "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"containerID": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",9"encoding": "hex",10};11const result = await provider.send("index.getIndex", 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"containerID": "CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",9"encoding": "hex",10};11const result = await provider.send("index.getIndex", params);12console.log(result);13})();14
1de web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"containerID":"CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",5"encoding":"hex"6}7request = w3.provider.make_request('index.getIndex', [params])8print(request)
1de web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider('https://docs-demo.avalanche-mainnet.quiknode.pro'))3params = {4"containerID":"CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",5"encoding":"hex"6}7request = w3.provider.make_request('index.getIndex', [params])8print(request)
Ainda não tem uma conta?
Crie o seu ponto de extremidade Quicknode em segundos e comece a desenvolver
Comece gratuitamente