Home

Returns balance history points.

POST
wss://bsc-blockbook.nownodes.io/wss/{apiKey}

Returns aggregated balance history for an address or descriptor. from and to are Unix timestamps; groupBy is the aggregation interval in seconds (default 3600); currencies filters fiat rates. Verified live: an address without history returns an empty array, and a range that spans more than 1000000 transactions is rejected with a data.error message. Live error example for an over-wide range: "balance history spans more than 1000000 transactions in the requested range; narrow the from/to range".

Body

application/json

Blockbook WebSocket request for getBalanceHistory, sent as a text message over the WebSocket connection.

idstringrequired

Request identifier. Subscription notifications are delivered with the same id as the subscribe request.

methodstringrequired
paramsobjectrequired
Show child attributes
descriptorstringrequired

Address, XPUB or descriptor.

frominteger | null

Unix timestamp lower bound.

tointeger | null

Unix timestamp upper bound.

currenciesArray<string>

Fiat currency filter.

groupByinteger | null

Aggregation interval in seconds.

Parameters

apiKeystringrequiredpath

NOWNodes API key. Connect to wss://bsc.nownodes.io/wss/{apiKey}. The WebSocket handshake returns HTTP 403 when the key is missing or invalid.

Response

200OK

Response delivered over the WebSocket connection as {"id": ..., "data": ...}. Errors are returned inside data.error; see BlockbookError.

403Forbidden

Forbidden. The WebSocket handshake was rejected: the API key is missing or invalid (verified live: wrong and missing keys both return HTTP 403).