getLedgerEntries RPC Method
參數
鍵
陣列
必填
載入中...
退貨
結果
物件
載入中...
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正文: 原始,19redirect: 'follow'20};2122fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)23.then(response => response.text())24.then(result => console.log(result))25.catch(error => 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正文: 原始,19redirect: 'follow'20};2122fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)23.then(response => response.text())24.then(result => console.log(result))25.catch(error => console.log('error', error));
1匯入 請求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, headers=headers, data=有效載荷)2122列印(回應.text)23
1匯入 請求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, headers=headers, data=有效載荷)2122列印(回應.text)23
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)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
1需要 "uri"2require "json"3需要 "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = 網::HTTP.new(url.主機, url.port)8https.use_ssl = true910請求 = 淨::HTTP::POST.new(網址)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