/runGetMethod REST API Endpoint
身体パラメータ
住所
文字列
必須
読み込み中...
メソッド
文字列
必須
読み込み中...
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--ヘッダー '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--ヘッダー '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 = {18メソッド: "POST",19ヘッダー: myHeaders,20本文: raw,21リダイレクト: "follow"22};2324fetch("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod", requestOptions)25.その後((レスポンス) => レスポンス.text())26.その後((結果) => コンソール.log(result))27.catchcatch((エラー) => コンソール.エラー(エラー));
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 = {18メソッド: "POST",19ヘッダー: myHeaders,20本文: raw,21リダイレクト: "follow"22};2324fetch("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod", requestOptions)25.その後((レスポンス) => レスポンス.text())26.その後((結果) => コンソール.log(result))27.catchcatch((エラー) => コンソール.エラー(エラー));
1import リクエスト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「accept」: 'application/json',19「Content-Type」: 'application/json'20}2122回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2324印刷(レスポンス.text)25
1import リクエスト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「accept」: 'application/json',19「Content-Type」: 'application/json'20}2122回答 = リクエスト.リクエスト("POST", url, headers=headers, データ=ペイロード)2324印刷(レスポンス.text)25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.ton-mainnet.quiknode.pro/runGetMethod")67http = ネット::HTTP.new(url.ホスト, url.ポート);8リクエスト = ネット::HTTP::POST.new(URL)9リクエスト["accept"] = "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 = ネット::HTTP.new(url.ホスト, url.ポート);8リクエスト = ネット::HTTP::POST.new(URL)9リクエスト["accept"] = "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