starknet_call RPC Method
Parâmetros
request
objeto
OBRIGATÓRIO
Carregando...
contract_address
cadeia de caracteres
OBRIGATÓRIO
Carregando...
entry_point_selector
cadeia de caracteres
OBRIGATÓRIO
Carregando...
calldata
matriz
OBRIGATÓRIO
Carregando...
block_id
cadeia de caracteres
OBRIGATÓRIO
Carregando...
Devoluções
resultado
matriz
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_call",10"params": [11{12"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",13"calldata": [14"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"15],16"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"17},18"mais recente"19]20}'
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_call",10"params": [11{12"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",13"calldata": [14"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"15],16"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"17},18"mais recente"19]20}'
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_call",11«params»: [12{13"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",14"calldata": [15"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"16],17"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"18},19"mais recente"20]21});2223const requestOptions = {24method: "POST",25cabeçalhos: myHeaders,26body: raw,27redirecionar: "seguir"28};2930fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)31.então((resposta) => resposta.texto())32.então((resultado) => console.log(resultado))33.catch((error) => console.error(error));34
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_call",11«params»: [12{13"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",14"calldata": [15"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"16],17"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"18},19"mais recente"20]21});2223const requestOptions = {24method: "POST",25cabeçalhos: myHeaders,26body: raw,27redirecionar: "seguir"28};2930fetch("https://docs-demo.strk-mainnet.quiknode.pro/rpc/v0_9", requestOptions)31.então((resposta) => resposta.texto())32.então((resultado) => console.log(resultado))33.catch((error) => console.error(error));34
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_call",12«params»: [13{14"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",15"calldata": [16"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"17],18"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"19},20"mais recente"21]22})23cabeçalhos = {24«aceitar»: 'application/json',25'content-type': 'application/json'26}2728resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2930imprimir(resposta.texto)31
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_call",12«params»: [13{14"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",15"calldata": [16"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"17],18"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"19},20"mais recente"21]22})23cabeçalhos = {24«aceitar»: 'application/json',25'content-type': 'application/json'26}2728resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)2930imprimir(resposta.texto)31
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_call",17«params»: [18{19"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",20"calldata": [21"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"22],23"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"24},25"mais recente"26]27})2829resposta = http.pedido(pedido)30insere a resposta.read_body31
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_call",17«params»: [18{19"contract_address": "0x049d36570d4e46f48e99674bd3fcc84644ddd6b96f7c741b1562b82f9e004dc7",20"calldata": [21"0xbfc2ea1a458d7cac752a4a688dbb8e0cff399e1b"22],23"entry_point_selector": "0xb2ef42a25c95687d1a3e7c2584885fd4058d102e05c44f65cf35988451bc8"24},25"mais recente"26]27})2829resposta = http.pedido(pedido)30insere a resposta.read_body31
Ainda não tem uma conta?
Crieendpoint seuendpoint Quicknode endpoint segundos e comece a desenvolver
Comece gratuitamente