Home

RPC call

POST
wss://avax-blockbook.nownodes.io/wss/{api_key}

Calls the rpcCall method over a WebSocket connection.

Connection URL:

Copied!
wss://avax-blockbook.nownodes.io/wss/{{api_key}}

Open the connection, then send the message below as a text frame.

Example:

Copied!
wscat -c 'wss://avax-blockbook.nownodes.io/wss/YOUR_API_KEY'
> {"id":"28","method":"rpcCall","params":{"to":"0x9702230A8Ea53601f5cD2dc00fDBc13d4dF4A8c7","data":"0x18160ddd"}}

Passthrough for eth_call: send the contract address in to and the ABI-encoded call in data. The example above calls totalSupply().

Body

application/json
object

Parameters

api_keystringrequiredpath

Your NOWNodes API key.

Response

200OK

A successful response.