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