Supported chains
Ankr covers both EVM and non-EVM networks that its Advanced APIs support. Select a chain by passing its identifier as thechainId query parameter on
both the validation and WSS URLs. Billing is split between EVM and non-EVM
subscriptions and notifications, see the Pricing section below.
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