Difference between revisions of "POST: /ext/info"

From wikieduonline
Jump to navigation Jump to search
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
rpc: POST method required, received GET
+
* https://docs.avax.network/apis/avalanchego/apis/info
  
  [[curl -X POST]] --data '{
+
  rpc: [[POST]] method required, received GET
    "jsonrpc":"2.0",
 
    "id"    :1,
 
    "method" :"info.getNodeID"
 
}' -H '[[content-type:application/json]];' 127.0.0.1:9650/ext/info
 
  
 +
[[info.getNodeID]]
 +
[[info.isBootstrapped]]
 +
[[info.getNodeVersion]]
 +
 +
 +
{{getNodeID}}
 +
 +
 +
 +
{{info.isBootstrapped}}
  
 
  {
 
  {
Line 23: Line 29:
 
* {{/ext/}}
 
* {{/ext/}}
 
* {{avalanchego}}
 
* {{avalanchego}}
* {{avax}}
 
  
 
[[Category:Avalanche]]
 
[[Category:Avalanche]]

Latest revision as of 15:39, 11 May 2023

rpc: POST method required, received GET
info.getNodeID
info.isBootstrapped
info.getNodeVersion


curl -X POST --data '{
    "jsonrpc":"2.0",
    "id"     :1,
    "method" :"info.getNodeID"
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info



curl -X POST --data '{
   "jsonrpc":"2.0",
   "id"     :1,
   "method" :"info.isBootstrapped",
               "params":{
                       "chain":"X"
               }
}' -H 'content-type:application/json;' 127.0.0.1:9650/ext/info
{
  "jsonrpc": "2.0",
  "result": {
    "nodeID": "NodeID-1234567890",
    "nodePOP": {
      "publicKey": "0x23543645654689d85c12d96220dde68cd4bbf756c8bf7897340982347",
      "proofOfPossession": "0x234523626325e0b6b234524352545324552343"
    }
  },
  "id": 1
}

See also[edit]

Advertising: