getLedgerEntries RPC Method
매개변수
keys
배열
필수
로딩 중...
반품
결과
객체
로딩 중...
entries
배열
로딩 중...
키
문자열
로딩 중...
xdr
문자열
로딩 중...
lastModifiedLedgerSeq
문자열
로딩 중...
extensionXdr
문자열
로딩 중...
extensionJson
객체
로딩 중...
latestLedger
문자열
로딩 중...
요청
1curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \2--헤더 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 8675309,6"method": "getLedgerEntries",7"params": {8"keys": [9"YOUR_KEYS_OF_LEDGER_ENTRIES"10]11}12}'
1curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \2--헤더 'Content-Type: application/json' \3--data '{4"jsonrpc": "2.0",5"id": 8675309,6"method": "getLedgerEntries",7"params": {8"keys": [9"YOUR_KEYS_OF_LEDGER_ENTRIES"10]11}12}'
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 8675309,7"method": "getLedgerEntries",8"params": {9"keys": [10"YOUR_KEYS_OF_LEDGER_ENTRIES"11]12}13});1415var requestOptions = {16메서드: 'POST',17헤더: myHeaders,18본문: raw,19리디렉션: 'follow'20};2122fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)23.그런 다음(응답 => response.text())24.그런 다음(결과 => console.log(result))25.catch(오류 => console.log('error', error));
1var myHeaders = new Headers();2myHeaders.추가("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 8675309,7"method": "getLedgerEntries",8"params": {9"keys": [10"YOUR_KEYS_OF_LEDGER_ENTRIES"11]12}13});1415var requestOptions = {16메서드: 'POST',17헤더: myHeaders,18본문: raw,19리디렉션: 'follow'20};2122fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)23.그런 다음(응답 => response.text())24.그런 다음(결과 => console.log(result))25.catch(오류 => console.log('error', error));
1import 요청2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"id": 8675309,9"method": "getLedgerEntries",10"params": {11"keys": [12"YOUR_KEYS_OF_LEDGER_ENTRIES"13]14}15})16헤더 = {17'Content-Type': 'application/json'18}1920답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2122인쇄(응답.text)23
1import 요청2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56페이로드 = json.dumps({7"jsonrpc": "2.0",8"id": 8675309,9"method": "getLedgerEntries",10"params": {11"keys": [12"YOUR_KEYS_OF_LEDGER_ENTRIES"13]14}15})16헤더 = {17'Content-Type': 'application/json'18}1920답변 = 요청.요청("POST", url, 헤더=헤더, data=페이로드)2122인쇄(응답.text)23
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"jsonrpc": "2.0",14"id": 8675309,15"method": "getLedgerEntries",16"params": {17"keys": [18"YOUR_KEYS_OF_LEDGER_ENTRIES"19]20}21})2223답변 = https.요청(요청)24응답을 넣습니다.read_body25
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.호스트, url.포트)8https.use_ssl = true910요청 = 순::HTTP::POST.새(URL)11요청["Content-Type"] = "application/json"12요청.본문 = JSON.dump({13"jsonrpc": "2.0",14"id": 8675309,15"method": "getLedgerEntries",16"params": {17"keys": [18"YOUR_KEYS_OF_LEDGER_ENTRIES"19]20}21})2223답변 = https.요청(요청)24응답을 넣습니다.read_body25