getLedgerEntries RPC Method
参数
keys
数组
必填
正在加载...
退货
结果
对象
正在加载...
条目
数组
正在加载...
key
字符串
正在加载...
xdr
字符串
正在加载...
lastModifiedLedgerSeq
字符串
正在加载...
extensionXdr
字符串
正在加载...
extensionJson
对象
正在加载...
latestLedger
字符串
正在加载...
请求
1curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \2--header '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--header '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.然后(响应 => 响应.text())24.然后(结果 => 控制台.log(result))25.catch(error => 控制台.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.然后(响应 => 响应.text())24.然后(结果 => 控制台.log(result))25.catch(error => 控制台.log('error', error));
1导入 请求2导入 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, 数据=有效载荷)2122打印(响应.text)23
1导入 请求2导入 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, 数据=有效载荷)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请求 = Net::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
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请求 = Net::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