Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 820 Bytes

blockchain.md

File metadata and controls

26 lines (18 loc) · 820 Bytes

Blockchain API

Global Stats

This method gets the global stats

URL: https://api.xcash.foundation/v1/xpayment-twitter/twitter/unauthorized/stats/

Method: GET

Inputs: None.

Results:

  • height - unsigned int; Current length of longest chain known to daemon.
  • status - string; General RPC error code. "OK" means everything looks good.
  • untrusted - boolean; States if the result is obtained using the bootstrap mode, and is therefore not trusted (true), or when the daemon is fully synced (false).
$ curl -X GET https://api.xcash.foundation/v1/xpayment-twitter/twitter/unauthorized/stats/ -H 'Content-Type: application/json'
{
  "height": 425000,
  "status": "OK",
  "untrusted": false
}