RPC call
POST
Calls the rpcCall 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":"28","method":"rpcCall","params":{"to":"0xbb4CdB9CBd36B01bD1cBaEBF2De08d9173bc095c","data":"0x18160ddd"}}Passthrough for
eth_call: send the contract address intoand the ABI-encoded call indata. The example above callstotalSupply().
Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.