Get balance history
POST
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".
Connection URL:
Copied!
wss://bsc-blockbook.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://bsc-blockbook.nownodes.io/wss/YOUR_API_KEY'
> {"id":"7","method":"getBalanceHistory","params":{"descriptor":"0xba98d6a5ac827632e3457de7512d211e4ff7e8bd","from":null,"to":null,"currencies":[""],"groupBy":null}}Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.