getVersionInfo RPC Method
Parâmetros
Este método não aceita quaisquer parâmetros
Devoluções
resultado
objeto
Carregando...
versão
cadeia de caracteres
Carregando...
commitHash
cadeia de caracteres
Carregando...
buildTimestamp
cadeia de caracteres
Carregando...
captiveCoreVersion
cadeia de caracteres
Carregando...
protocolVersion
número inteiro
Carregando...
Pedido
1curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \2--cabeçalho 'Content-Type: application/json' \3--dados '{4"jsonrpc": "2.0",5"id": 8675309,6"method": "getVersionInfo"7}'8
1curl --location 'https://docs-demo.stellar-mainnet.quiknode.pro/' \2--cabeçalho 'Content-Type: application/json' \3--dados '{4"jsonrpc": "2.0",5"id": 8675309,6"method": "getVersionInfo"7}'8
1var myHeaders = new Headers();2myHeaders.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 8675309,7"method": "getVersionInfo"8});910var requestOptions = {11método: 'POST',12cabeçalhos: 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.acrescentar("Content-Type", "application/json");34var raw = JSON.stringify({5"jsonrpc": "2.0",6"id": 8675309,7"method": "getVersionInfo"8});910var requestOptions = {11método: 'POST',12cabeçalhos: 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
1importar pedidos2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56carga útil = json.dumps({7"jsonrpc": "2.0",8"id": 8675309,9"method": "getVersionInfo"10})11cabeçalhos = {12'Content-Type': 'application/json'13}1415resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1617imprimir(resposta.texto)18
1importar pedidos2import json34url = "https://docs-demo.stellar-mainnet.quiknode.pro/"56carga útil = json.dumps({7"jsonrpc": "2.0",8"id": 8675309,9"method": "getVersionInfo"10})11cabeçalhos = {12'Content-Type': 'application/json'13}1415resposta = pedidos.pedido("POST", url, headers=headers, dados=carga útil)1617imprimir(resposta.texto)18
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"id": 8675309,15"method": "getVersionInfo"16})1718resposta = https.pedido(pedido)19insere a resposta.read_body20
1exigir "uri"2require "json"3necessita de "net/http"45url = URI("https://docs-demo.stellar-mainnet.quiknode.pro/")67https = Net::HTTP.novo(url.host, url.porta)8https.use_ssl = true910pedido = Líquido::HTTP::POST.novo(url)11pedido["Content-Type"] = "application/json"12request.body = JSON.dump({13"jsonrpc": "2.0",14"id": 8675309,15"method": "getVersionInfo"16})1718resposta = https.pedido(pedido)19insere a resposta.read_body20
Ainda não tem uma conta?
Crieendpoint seuendpoint Quicknode endpoint segundos e comece a desenvolver
Comece gratuitamente