Body Parameters
object
object
REQUIRED
Run Get-method request.
address
string
Address of the smart contract
method
string
Name of the method to call
stack
array
Stack of arguments for the method
type
string
Type of the argument
value
object
Value of the argument
Returns
gas_used
integer
The amount of gas units consumed during execution
exit_code
integer
The execution result code
stack
array
The array of values returned by the method
type
string
The data type of the returned value
value
string
The actual value returned by the method
Request
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");3myHeaders.append("Content-Type", "application/json");45const raw = 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 = {17method: "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");3myHeaders.append("Content-Type", "application/json");45const raw = 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 = {17method: "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)
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free