getsnapshot - Spacecoin RPC Docs


getsnapshot

Returns a snapshot of (address,amount) pairs at current height (requires addressindex to be enabled).

Arguments:
  "top" (number, optional) Only return this many addresses, i.e. top N richlist

Result:
{
   "addresses": [
    {
      "addr": "RMEBhzvATA8mrfVK82E5TgPzzjtaggRGN3",
      "amount": "100.0"
    },
    {
      "addr": "RqEBhzvATAJmrfVL82E57gPzzjtaggR777",
      "amount": "23.45"
    }
  ],
  "total": 123.45           (numeric) Total amount in snapshot
  "average": 61.7,          (numeric) Average amount in each address 
  "utxos": 14,              (number) Total number of UTXOs in snapshot
  "total_addresses": 2,     (number) Total number of addresses in snapshot,
  "start_height": 91,       (number) Block height snapshot began
  "ending_height": 91       (number) Block height snapsho finished,
  "start_time": 1531982752, (number) Unix epoch time snapshot started
  "end_time": 1531982752    (number) Unix epoch time snapshot finished
}

Examples:
> spacecoin-cli getsnapshot 
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getsnapshot", "params": [1000] }' -H 'content-type: text/plain;' http://127.0.0.1:35593/


Learn more about spacecoin at spacecoin.network.
Docs generated by spacecoin v0.6.1.
Find this github repo at spacecoinSPACE/spacecoin-rpc-docs.

Spacecoin Logo



Auction











Lotto