/runGetMethod REST API Endpoint
身体参数
地址
字符串
必填
正在加载...
method
字符串
必填
正在加载...
stack
数组
必填
正在加载...
seqno
整数
必填
正在加载...
退货
ok
布尔型
正在加载...
结果
对象
正在加载...
@type
字符串
正在加载...
gas_used
整数
正在加载...
stack
数组
正在加载...
exit_code
整数
正在加载...
@extra
字符串
正在加载...
block_id
对象
正在加载...
@type
字符串
正在加载...
workchain
整数
正在加载...
shard
字符串
正在加载...
seqno
整数
正在加载...
root_hash
字符串
正在加载...
file_hash
字符串
正在加载...
last_transaction_id
对象
正在加载...
@type
字符串
正在加载...
lt
字符串
正在加载...
哈希
字符串
正在加载...
请求
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.追加("accept", "application/json");3myHeaders.追加("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 = {18方法: "POST",19标题: myHeaders,20正文: raw,21重定向: "follow"22};2324fetch("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod", requestOptions)25.然后((响应) => 响应.文本())26.然后((结果) => 控制台.log(result))27.catch((error) => 控制台.错误(error));
1const myHeaders = new Headers();2myHeaders.追加("accept", "application/json");3myHeaders.追加("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 = {18方法: "POST",19标题: myHeaders,20正文: raw,21重定向: "follow"22};2324fetch("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod", requestOptions)25.然后((响应) => 响应.文本())26.然后((结果) => 控制台.log(result))27.catch((error) => 控制台.错误(error));
1导入 请求2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod"56有效载荷 = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"method": "getConsensusBlock",9"stack": [10[11"num",12"0x1"13]14],15"seqno": 4114634916})17标题 = {18“接受”: 'application/json',19“Content-Type”: 'application/json'20}2122回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2324打印(响应.text)25
1导入 请求2import json34url = "https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod"56有效载荷 = json.dumps({7"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",8"method": "getConsensusBlock",9"stack": [10[11"num",12"0x1"13]14],15"seqno": 4114634916})17标题 = {18“接受”: 'application/json',19“Content-Type”: 'application/json'20}2122回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)2324打印(响应.text)25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod")67http = Net::HTTP.new(url.主机, url.端口);8请求 = Net::HTTP::POST.new(url)9请求["接受"] = "application/json"10请求["Content-Type"] = "application/json"11请求.请求体 = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"method": "getConsensusBlock",14"stack": [15[16"num",17"0x1"18]19],20"seqno": 4114634921})2223回复 = http.请求(请求)24返回响应.read_body25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod")67http = Net::HTTP.new(url.主机, url.端口);8请求 = Net::HTTP::POST.new(url)9请求["接受"] = "application/json"10请求["Content-Type"] = "application/json"11请求.请求体 = JSON.dump({12"address": "EQCg1gU0NGQ0fZTAf8v7H6tPkY0P7l17U09lKDU8NfRB8Dyq",13"method": "getConsensusBlock",14"stack": [15[16"num",17"0x1"18]19],20"seqno": 4114634921})2223回复 = http.请求(请求)24返回响应.read_body25