getVersionInfo RPC Method
Parameters
This method does not accept any parameters
Returns
result
object
Loading...
version
string
Loading...
commitHash
string
Loading...
buildTimestamp
string
Loading...
captiveCoreVersion
string
Loading...
protocolVersion
integer
Loading...
Request
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.append("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 8675309,7"method": "getVersionInfo"8});910var requestOptions = {11method: 'POST',12headers: myHeaders,13body: raw,14redirect: 'follow'15};1617fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.log('error', error));21
1var myHeaders = new Headers();2myHeaders.append("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 8675309,7"method": "getVersionInfo"8});910var requestOptions = {11method: 'POST',12headers: myHeaders,13body: raw,14redirect: 'follow'15};1617fetch("https://docs-demo.stellar-mainnet.quiknode.pro/", requestOptions)18.then(response => response.text())19.then(result => console.log(result))20.catch(error => console.log('error', error));21
1import requests2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"id": 8675309,9"method": "getVersionInfo"10})11headers = {12'Content-Type': 'application/json'13}1415response = requests.request("POST", url, headers=headers, data=payload)1617print(response.text)18
1import requests2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56payload = json.dumps({7"jsonrpc": "2.0",8"id": 8675309,9"method": "getVersionInfo"10})11headers = {12'Content-Type': 'application/json'13}1415response = requests.request("POST", url, headers=headers, data=payload)1617print(response.text)18
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"id": 8675309,15"method": "getVersionInfo"16})1718response = https.request(request)19puts response.read_body20
1require "uri"2require "json"3require "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = Net::HTTP.new(url.host, url.port)8https.use_ssl = true910request = Net::HTTP::Post.new(url)11request["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"id": 8675309,15"method": "getVersionInfo"16})1718response = https.request(request)19puts response.read_body20
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free