DEVELOPERS

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

Quick start

API SURFACE

The APIs

Four groups covering energy, wallets, callbacks and nodes.

ENERGY

Energy API

Batch rental, order lookup, current pricing.

  • POST /energy/rent
  • GET /energy/price
WALLET

Wallet API

Address generation, balance queries, transaction broadcast.

  • POST /wallet/address
  • GET /wallet/balance
  • POST /wallet/transfer
HOOK

WebHook API

Callback configuration, address monitoring, event subscriptions.

  • POST /webhook/create
  • GET /webhook/list
NODE

Node API

Account queries, transaction queries, contract calls.

  • GET /node/account
  • GET /node/transaction
  • POST /node/contract
EXAMPLE

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
  }
}
SUPPORT

Getting help

Start integrating

Sign up and create an API key with an IP allowlist from the console.