/api/v3/runGetMethod RPC Method
Paramètres du corps
objet
objet
OBLIGATOIRE
Chargement...
adresse
chaîne de caractères
Chargement...
method
chaîne de caractères
Chargement...
stack
tableau
Chargement...
type
chaîne de caractères
Chargement...
valeur
objet
Chargement...
Renvoie
gaz utilisé
entier
Chargement...
exit_code
entier
Chargement...
stack
tableau
Chargement...
type
chaîne de caractères
Chargement...
valeur
chaîne de caractères
Chargement...
Requête
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod' \2--header 'accept: application/json' \3--header 'Content-Type: application/json' \4--data '{5"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",6"method": "get_staking_status",7"stack": [8{9"type": "num",10"value": "0x12a"11}12]13}'
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod' \2--header 'accept: application/json' \3--header 'Content-Type: application/json' \4--data '{5"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",6"method": "get_staking_status",7"stack": [8{9"type": "num",10"value": "0x12a"11}12]13}'
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3mesEnTêtes.ajouter("Content-Type", "application/json");45const brut = JSON.stringify({6"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",7"method": "get_staking_status",8"stack": [9{10"type": "num",11"value": "0x12a"12}13]14});1516const requestOptions = {17méthode: « POST »,18headers: myHeaders,19body: raw,20redirect: "follow"21};2223fetch("https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod", requestOptions)24.then((response) => response.text())25.then((result) => console.log(result))26.catch((error) => console.error(error));
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3mesEnTêtes.ajouter("Content-Type", "application/json");45const brut = JSON.stringify({6"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",7"method": "get_staking_status",8"stack": [9{10"type": "num",11"value": "0x12a"12}13]14});1516const requestOptions = {17méthode: « POST »,18headers: myHeaders,19body: raw,20redirect: "follow"21};2223fetch("https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod", requestOptions)24.then((response) => response.text())25.then((result) => console.log(result))26.catch((error) => console.error(error));
1import requests2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod"56payload = json.dumps({7"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",8"method": "get_staking_status",9"stack": [10{11"type": "num",12"value": "0x12a"13}14]15})16headers = {17'accept': 'application/json',18'Content-Type': 'application/json'19}2021response = requests.request("POST", url, headers=headers, data=payload)2223print(response.text)24
1import requests2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod"56payload = json.dumps({7"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",8"method": "get_staking_status",9"stack": [10{11"type": "num",12"value": "0x12a"13}14]15})16headers = {17'accept': 'application/json',18'Content-Type': 'application/json'19}2021response = requests.request("POST", url, headers=headers, data=payload)2223print(response.text)24
1require "uri"2require "net/http"34url = URI("https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod")56http = Net::HTTP.new(url.host, url.port);7request = Net::HTTP::Post.new(url)8request["accept"] = "application/json"9request["Content-Type"] = "application/json"10request.body = JSON.dump({11"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",12"method": "get_staking_status",13"stack": [14{15"type": "num",16"value": "0x12a"17}18]19})2021response = http.request(request)
1require "uri"2require "net/http"34url = URI("https://docs-demo.ton-mainnet.quiknode.pro/api/v3/runGetMethod")56http = Net::HTTP.new(url.host, url.port);7request = Net::HTTP::Post.new(url)8request["accept"] = "application/json"9request["Content-Type"] = "application/json"10request.body = JSON.dump({11"address": "EQDtFpEwcFAEcRe5mLVh2N6C0x-_hJEM7W61_JLnSF74p4q2",12"method": "get_staking_status",13"stack": [14{15"type": "num",16"value": "0x12a"17}18]19})2021response = http.request(request)
Vous n'avez pas encore de compte ?
Créez votre endpoint Quicknode en quelques secondes et commencez à développer
Commencez gratuitement