Get block filter
POST
Calls the getBlockFilter method over a WebSocket connection.
Connection URL:
Copied!
wss://btc-testnet.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://btc-testnet.nownodes.io/wss/YOUR_API_KEY'
> {"id":"11","method":"getBlockFilter","params":{"scriptType":"","blockHash":"00000000007df7e9e3fcf3d0bcdb4c159b2f18a55986bfff0be8eab1d1078cf6"}}Compact block filters are not built on this endpoint, so
blockFiltercomes back empty andPis 0. SendscriptTypeempty, as no script type is configured.
Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.