Loader

Note

Provides the synchronization and loading information of a client. These API calls will only work if the client is syncing or loading.

Get Loading Status

Returns the sync status of the blockchain.

GET /api/loader/status

Response

 {
   "success": true,
   "loaded": "Is blockchain loaded? Boolean: true or false",
   "now": "Last block loaded during loading time. Integer",
   "blocksCount": "Total blocks count in blockchain at loading time. Integer"
}

Example

 curl -k -X GET http://localhost:8000/api/loader/status/

Get Synchronization Status

Get the synchronization status of the client.

GET /api/loader/status/sync

Response

 {
   "success": true,
   "syncing": "Is wallet is syncing with another peers? Boolean: true or false",
   "blocks": "Number of blocks remaining to sync. Integer",
   "height": "Total blocks in blockchain. Integer",
   "broadhash": "Block propagation efficiency and reliability. String",
   "consensus": "Efficiency (%). Integer"
}

Example

 curl -k -X GET http://localhost:8000/api/loader/status/sync

Get Block Receipt Status

Get the status of last received block. Returns true if block was received in the past 120 seconds.

GET /api/loader/status/ping

Response

 {
   "success": true
}

Example

 curl -k -X GET http://localhost:8000/api/loader/status/ping

What's next?
Transactions