> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Alchemy

> Connect to Alchemy streams through Uniblock WebSockets.

Alchemy WebSockets are available through Uniblock for broad multi-chain
streaming support.

## Supported chains

Alchemy supports many networks, including:

* `1`
* `10`
* `137`
* `8453`
* `42161`
* `stellar-mainnet`
* `stellar-testnet`

## Endpoints

* HTTP (Validation): `https://websocket.uniblock.dev/alchemy/validate?chainId=${chainId}`
* WebSocket (WSS): `wss://websocket.uniblock.dev/alchemy?chainId=${chainId}`

## Authentication

* Include the `X-API-KEY` header in both validation and connection requests.
* Reuse the same `chainId` and headers when moving from validation to WSS.

## Workflow

1. Validate against the Alchemy HTTP endpoint.
2. Open the matching WSS endpoint.
3. Send your JSON-RPC subscription payload.

## Resources

* [Alchemy Subscription API](https://docs.alchemy.com/reference/subscription-api)
* [Alchemy WebSocket Best Practices](https://docs.alchemy.com/docs/websocket-best-practices)
