Body Parameters
address
string
REQUIRED
Loading...
method
string
REQUIRED
Loading...
stack
array
REQUIRED
Loading...
seqno
integer
REQUIRED
Loading...
Returns
ok
boolean
Loading...
result
object
Loading...
@type
string
Loading...
gas_used
integer
Loading...
stack
array
Loading...
exit_code
integer
Loading...
@extra
string
Loading...
block_id
object
Loading...
@type
string
Loading...
workchain
integer
Loading...
shard
string
Loading...
seqno
integer
Loading...
root_hash
string
Loading...
file_hash
string
Loading...
last_transaction_id
object
Loading...
@type
string
Loading...
lt
string
Loading...
hash
string
Loading...
Request
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod' \2--header 'accept: application/json' \3--header 'Content-Type: application/json' \4--data '{5"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",6"method": "getConsensusBlock",7"stack": [8["num", "0x1"]9],10"seqno": 4114634911}'
1curl --location 'https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod' \2--header 'accept: application/json' \3--header 'Content-Type: application/json' \4--data '{5"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",6"method": "getConsensusBlock",7"stack": [8["num", "0x1"]9],10"seqno": 4114634911}'
1const myHeaders = new Headers();2myHeaders.append("accept", "application/json");3myHeaders.append("Content-Type", "application/json");45const raw = JSON.stringify({6"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",7"method": "getConsensusBlock",8"stack": [9[10"num",11"0x1"12]13],14"seqno": 4114634915});1617const requestOptions = {18method: "POST",19headers: myHeaders,20body: raw,21redirect: "follow"22};2324fetch("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod", requestOptions)25.then((response) => response.text())26.then((result) => console.log(result))27.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": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",7"method": "getConsensusBlock",8"stack": [9[10"num",11"0x1"12]13],14"seqno": 4114634915});1617const requestOptions = {18method: "POST",19headers: myHeaders,20body: raw,21redirect: "follow"22};2324fetch("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod", requestOptions)25.then((response) => response.text())26.then((result) => console.log(result))27.catch((error) => console.error(error));
1import requests2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod"56payload = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"method": "getConsensusBlock",9"stack": [10[11"num",12"0x1"13]14],15"seqno": 4114634916})17headers = {18'accept': 'application/json',19'Content-Type': 'application/json'20}2122response = requests.request("POST", url, headers=headers, data=payload)2324print(response.text)25
1import requests2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod"56payload = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"method": "getConsensusBlock",9"stack": [10[11"num",12"0x1"13]14],15"seqno": 4114634916})17headers = {18'accept': 'application/json',19'Content-Type': 'application/json'20}2122response = requests.request("POST", url, headers=headers, data=payload)2324print(response.text)25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod")67http = Net::HTTP.new(url.host, url.port);8request = Net::HTTP::Post.new(url)9request["accept"] = "application/json"10request["Content-Type"] = "application/json"11request.body = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"method": "getConsensusBlock",14"stack": [15[16"num",17"0x1"18]19],20"seqno": 4114634921})2223response = http.request(request)24puts response.read_body25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod")67http = Net::HTTP.new(url.host, url.port);8request = Net::HTTP::Post.new(url)9request["accept"] = "application/json"10request["Content-Type"] = "application/json"11request.body = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"method": "getConsensusBlock",14"stack": [15[16"num",17"0x1"18]19],20"seqno": 4114634921})2223response = http.request(request)24puts response.read_body25
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free