Home

Get contract info

POST
wss://maticbook.nownodes.io/wss/{api_key}

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.erc4626 carries error and omits asset.

Body

application/json
object

Parameters

api_keystringrequiredpath

Your NOWNodes API key.

Response

200OK

A successful response.