Subscribe address
POST
Calls the subscribeAddresses method over a WebSocket connection.
Connection URL:
Copied!
wss://btcbook.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://btcbook.nownodes.io/wss/YOUR_API_KEY'
> {"id":"19","method":"subscribeAddresses","params":{"addresses":["bc1qwzrryqr3ja8w7hnja2spmkgfdcgvqwp5swz4af4ngsjecfz0w0pqud7k38"]}}Optional parameter
newBlockTxs(boolean, default false): when true, the subscription also publishes confirmed transactions for the subscribed addresses as new blocks are connected. Without it only mempool transactions are delivered, so transactions that land straight in a block are never announced.
Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.