Subscribe new transaction
POST
After subscribing, a notification is pushed for every transaction entering the mempool, with the id of this request. Notification data (live capture) is a normalized transaction: txid, vin, vout and related fields. Live notification data example: {"txid": "0x1709a081629b22b2b26eb4a2dbcd9c67356b50fd3361a0b8e9c7165195d17e64", "vin": [{"n": 0, "addresses": ["0x79370CC8e1FDf2653a7dde9d6D38f819936471F9"], "isAddress": true}], "vout": [{"value": "0", "n": 0, "addresses": ["0xb300000b72DEAEb607a12d5f54773D1C19c7028d"], "isAddress": true}]} (truncated).
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":"17","method":"subscribeNewTransaction","params":{}}Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.