starknet_getStorageAt RPC Method
Parâmetros
contract_address
cadeia de caracteres
OBRIGATÓRIO
Carregando...
key
cadeia de caracteres
OBRIGATÓRIO
Carregando...
block_id
cadeia de caracteres
OBRIGATÓRIO
Carregando...
Devoluções
resultado
cadeia de caracteres
Carregando...
Pedido
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--dados '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_getStorageAt",10"params": [11"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",12"0x0000000000000000000000000000000000000000000000000000000000000001",13"mais recente"14]15}'
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3curl --location 'https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9' \4--header 'accept: application/json' \5--header 'content-type: application/json' \6--dados '{7"id": 1,8"jsonrpc": "2.0",9"method": "starknet_getStorageAt",10"params": [11"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",12"0x0000000000000000000000000000000000000000000000000000000000000001",13"mais recente"14]15}'
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3const myHeaders = new Headers();4myHeaders.append("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9"jsonrpc": "2.0",10"method": "starknet_getStorageAt",11«params»: [12"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",13"0x0000000000000000000000000000000000000000000000000000000000000001",14"mais recente"15]16});1718const requestOptions = {19method: "POST",20cabeçalhos: myHeaders,21body: raw,22redirecionar: "seguir"23};2425fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)26.então((resposta) => resposta.texto())27.então((resultado) => console.log(resultado))28.catch((error) => console.error(error));29
1// Note: You can specify Starknet version in the URL path2// Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3const myHeaders = new Headers();4myHeaders.append("accept", "application/json");5myHeaders.append("content-type", "application/json");67const raw = JSON.stringify({8"id": 1,9"jsonrpc": "2.0",10"method": "starknet_getStorageAt",11«params»: [12"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",13"0x0000000000000000000000000000000000000000000000000000000000000001",14"mais recente"15]16});1718const requestOptions = {19method: "POST",20cabeçalhos: myHeaders,21body: raw,22redirecionar: "seguir"23};2425fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)26.então((resposta) => resposta.texto())27.então((resultado) => console.log(resultado))28.catch((error) => console.error(error));29
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78carga útil = json.dumps({9"id": 1,10"jsonrpc": "2.0",11"method": "starknet_getStorageAt",12«params»: [13"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",14"0x0000000000000000000000000000000000000000000000000000000000000001",15"mais recente"16]17})18cabeçalhos = {19«aceitar»: 'application/json',20'content-type': 'application/json'21}2223resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2425imprimir(resposta.texto)26
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3import requests4import json56url = "https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9"78carga útil = json.dumps({9"id": 1,10"jsonrpc": "2.0",11"method": "starknet_getStorageAt",12«params»: [13"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",14"0x0000000000000000000000000000000000000000000000000000000000000001",15"mais recente"16]17})18cabeçalhos = {19«aceitar»: 'application/json',20'content-type': 'application/json'21}2223resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2425imprimir(resposta.texto)26
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3require "uri"4require "json"5necessita de "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = Net::HTTP.new(url.host, url.port);10pedido = Líquido::HTTP::POST.novo(url)11request["accept"] = "application/json"12request["content-type"] = "application/json"13request.body = JSON.dump({14"id": 1,15"jsonrpc": "2.0",16"method": "starknet_getStorageAt",17«params»: [18"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",19"0x0000000000000000000000000000000000000000000000000000000000000001",20"mais recente"21]22})2324resposta = http.pedido(pedido)25insere a resposta.read_body26
1# Note: You can specify Starknet version in the URL path2# Example: /rpc/v0_9 for version 0.9. Versions 0.6, 0.7, and 0.8 are no longer supported3require "uri"4require "json"5necessita de "net/http"67url = URI("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9")89http = Net::HTTP.new(url.host, url.port);10pedido = Líquido::HTTP::POST.novo(url)11request["accept"] = "application/json"12request["content-type"] = "application/json"13request.body = JSON.dump({14"id": 1,15"jsonrpc": "2.0",16"method": "starknet_getStorageAt",17«params»: [18"0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",19"0x0000000000000000000000000000000000000000000000000000000000000001",20"mais recente"21]22})2324resposta = http.pedido(pedido)25insere a resposta.read_body26
Ainda não tem uma conta?
Crieendpoint seuendpoint Quicknode endpoint segundos e comece a desenvolver
Comece gratuitamente