getVersionInfo RPC Method
参数
该方法不接受任何参数
退货
结果
对象
正在加载...
版本
字符串
正在加载...
commitHash
字符串
正在加载...
buildTimestamp
字符串
正在加载...
captiveCoreVersion
字符串
正在加载...
protocolVersion
整数
正在加载...
请求
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": "getVersionInfo"7}'8
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": "getVersionInfo"7}'8
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 8675309,7"method": "getVersionInfo"8});910var requestOptions = {11方法: 'POST',12标题: myHeaders,13正文: raw,14重定向: 'follow'15};1617fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)18.然后(响应 => 响应.text())19.然后(结果 => 控制台.log(result))20.catch(error => 控制台.log('error', error));21
1var myHeaders = new Headers();2myHeaders.追加("Content-Type", "application/json");34var raw = JSON.stringify({5“jsonrpc”: "2.0",6"id": 8675309,7"method": "getVersionInfo"8});910var requestOptions = {11方法: 'POST',12标题: myHeaders,13正文: raw,14重定向: 'follow'15};1617fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)18.然后(响应 => 响应.text())19.然后(结果 => 控制台.log(result))20.catch(error => 控制台.log('error', error));21
1导入 请求2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 8675309,9"method": "getVersionInfo"10})11标题 = {12“Content-Type”: 'application/json'13}1415回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)1617打印(响应.text)18
1导入 请求2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56有效载荷 = json.dumps({7“jsonrpc”: "2.0",8"id": 8675309,9"method": "getVersionInfo"10})11标题 = {12“Content-Type”: 'application/json'13}1415回复 = 请求.请求("POST", url, headers=headers, data=有效载荷)1617打印(响应.text)18
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(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“jsonrpc”: "2.0",14"id": 8675309,15"method": "getVersionInfo"16})1718回复 = https.请求(请求)19返回响应.read_body20
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(url)11请求["Content-Type"] = "application/json"12请求.请求体 = JSON.dump({13“jsonrpc”: "2.0",14"id": 8675309,15"method": "getVersionInfo"16})1718回复 = https.请求(请求)19返回响应.read_body20