Get contract info
POST
Calls the getContractInfo method over a WebSocket connection.
Connection URL:
Copied!
wss://maticbook.nownodes.io/wss/{{api_key}}Open the connection, then send the message below as a text frame.
Example:
Copied!
wscat -c 'wss://maticbook.nownodes.io/wss/YOUR_API_KEY'
> {"id":"27","method":"getContractInfo","params":{"contract":"0x0000000000000000000000000000000000000001"}}EVM chains only. The ERC-4626 values are pinned to
blockHeight; if the vault is detected but its asset metadata cannot be resolved,protocols.erc4626carrieserrorand omitsasset.
Body
application/json
object
Parameters
api_keystringrequiredpathYour NOWNodes API key.
Response
200OK
A successful response.