## Endpoints

One domain, `services.carbium.sh`, for every plane, on standard TLS. No `rpc.` or `ws.` subdomains. Add your key as in [authentication](https://carbium.sh/docs/auth.md).

- rpc / https: `https://services.carbium.sh`
- websocket / wss: `wss://services.carbium.sh`
- carbon stream / grpc: `https://services.carbium.sh:9443`
- quote / json-rpc: `https://services.carbium.sh`

> Connections stay open 600 s and TLS sessions resume; reuse one client.

> Quotes are JSON-RPC POST on the RPC endpoint, only four methods, all live: `quote`, `swap`, `health` and `prices`. No quote host and no `GET /quote`. See [quote api](https://carbium.sh/docs/quote.md).

### quick start

```
# RPC over HTTPS
curl https://services.carbium.sh \
  -H 'content-type: application/json' \
  -H 'x-api-key: <YOUR_KEY>' \
  -d '{"jsonrpc":"2.0","id":1,"method":"getSlot"}'
# -> {"jsonrpc":"2.0","result":445685899,"id":1}
```
