DEVELOPERSDeveloper center
Developer center
Four APIs, one key
Energy, wallet, webhooks and nodes share the same authentication and error codes. Once you have integrated one, the other three need no relearning.
- Protocol
- REST + JSON
- Auth
- X-API-Key
- Callbacks
- HMAC-SHA256
Energy, wallet, webhooks and nodes share the same authentication and error codes. Once you have integrated one, the other three need no relearning.
Quick start
The APIs
Four groups covering energy, wallets, callbacks and nodes.
ENERGY
Energy API
Batch rental, order lookup, current pricing.
POST /energy/rentGET /energy/price
WALLET
Wallet API
Address generation, balance queries, transaction broadcast.
POST /wallet/addressGET /wallet/balancePOST /wallet/transfer
HOOK
WebHook API
Callback configuration, address monitoring, event subscriptions.
POST /webhook/createGET /webhook/list
NODE
Node API
Account queries, transaction queries, contract calls.
GET /node/accountGET /node/transactionPOST /node/contract
A call, end to end
Every endpoint authenticates with the X-API-Key header and answers in the same success / code / data envelope.
GET /api/v1/energy/price
curl https://rolthe.com/api/v1/energy/price?rent_time=1 \
-H "X-API-Key: $ROLTHE_API_KEY"
{
"success": true,
"code": 10000,
"data": {
"price_65k_1hour": 1.86,
"price_per_10k": 0.286154,
"energy_per_transfer": 65000,
"min_energy": 32000,
"max_energy": 5000000,
"rent_time": 1
}
}