Subscribe address
POST
Calls the subscribeAddresses method over a WebSocket connection.
Connection URL:
Copied!
wss://maticbook.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://maticbook.nownodes.io/wss/YOUR_API_KEY'
> {"id":"21","method":"subscribeAddresses","params":{"addresses":["0x109b12abF3FB6396a0E90894E86a640870b7c1ad"],"newBlockTxs":true}}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.