/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.추가("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.그런 다음((응답) => 응답.text())26.그런 다음((결과) => console.log(result))27.catchcatch ((오류) => 콘솔.오류(오류));
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.그런 다음((응답) => 응답.text())26.그런 다음((결과) => console.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'수락': 'application/json',19'Content-Type': 'application/json'20}2122답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)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'수락': 'application/json',19'Content-Type': 'application/json'20}2122답변 = 요청.요청("POST", url, 헤더=헤더, 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요청 = 순::HTTP::POST.새(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요청 = 순::HTTP::POST.새(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