index.getIndex RPC Method
Parámetros
containerID
Cadena
Cargando...
encoding
Cadena
Cargando...
Devoluciones
índice
cadena
Cargando...
Solicitud
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 proveedor = 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);12consola.registro(resultado);13})();14
1import { ethers } from "ethers";23(async () => {4const proveedor = 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);12consola.registro(resultado);13})();14
1de web3 import Web3, HTTPProvider2w3 = Web3(HTTPProvider(«https://docs-demo.avalanche-mainnet.quiknode.pro»)))3parámetros = {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»)))3parámetros = {4"containerID":"CRKUaHg85WmLtMc2AbiWVh87Vi5PKBVZFFLhWPtZyRDv6SHSS",5"encoding":"hex"6}7request = w3.provider.make_request('index.getIndex', [params])8print(request)
¿Aún no tienes una cuenta?
Crea tu punto de conexión de Quicknode en cuestión de segundos y empieza a desarrollar
Empieza gratis