Skip to main content
Ankr WebSockets are available through Uniblock with a validation endpoint and a matching WSS endpoint.

Supported chains

Ankr covers both EVM and non-EVM networks that its Advanced APIs support. Select a chain by passing its identifier as the chainId 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

  • chainId is required.
  • Include the X-API-KEY header in both validation and connection requests.

Workflow

  1. Validate the request with the HTTP endpoint.
  2. Connect to the WSS endpoint using the same chainId.
  3. 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
See Usage & Limits for the full CU cost table.

Resources