Endpoints
- WebSocket (WSS):
wss://websocket.uniblock.dev/ankr?chainId=1 - HTTP (Validation):
https://websocket.uniblock.dev/ankr/validate?chainId=1
Required parameters
chainIdis required.- Include the
X-API-KEYheader in both validation and connection requests.
Workflow
- Validate the request with the HTTP endpoint.
- Connect to the WSS endpoint using the same
chainId. - Send your Ankr WebSocket subscription message.
Example validation request
Pricing
Ankr WebSocket usage is billed per active subscription and per notification received, split by EVM and non-EVM chains:- Subscription (EVM): 416.67 CUs
- Subscription (Non-EVM): 166.67 CUs
- Notification (EVM): 83.33 CUs
- Notification (Non-EVM): 416.67 CUs