# API Hosts

Use the host for the product and environment that you select. Do not mix a mainnet signing domain with a testnet API.

## Mainnet

### UI

| Service | Endpoint                                             |
| ------- | ---------------------------------------------------- |
| App     | [https://app.meridian.xyz](https://app.meridian.xyz) |

### Predict

| Service           | Endpoint                                                                             |
| ----------------- | ------------------------------------------------------------------------------------ |
| GraphQL API       | [https://api.predict.meridian.xyz/graphql](https://api.predict.meridian.xyz/graphql) |
| Relayer WebSocket | wss://relayer.predict.meridian.xyz/auction                                          |

### Perpetual Futures

Perpetual Futures mainnet is not yet live. Mainnet endpoints will be published here at launch.

## Testnet

### UI

| Service | Endpoint                                                     |
| ------- | ------------------------------------------------------------ |
| App     | [https://testnet.meridian.xyz](https://testnet.meridian.xyz) |

### Predict

| Service           | Endpoint                                                                                     |
| ----------------- | -------------------------------------------------------------------------------------------- |
| GraphQL API       | [https://api.predict.meridiantest.net/graphql](https://api.predict.meridiantest.net/graphql) |
| Relayer WebSocket | wss://relayer.predict.meridiantest.net/auction                                              |

### Perpetual Futures

Testnet assets have no monetary value, and endpoints can change between deployments.

| Service                   | Endpoint                                                                                       |
| ------------------------- | ---------------------------------------------------------------------------------------------- |
| HTTP API                  | [https://api.meridiantest.net](https://api.meridiantest.net)                                   |
| OpenAPI specification     | [https://api.meridiantest.net/openapi.json](https://api.meridiantest.net/openapi.json)         |
| Interactive API reference | [https://api.meridiantest.net/docs](https://api.meridiantest.net/docs)                         |
| Archive API               | [https://archive.meridiantest.net](https://archive.meridiantest.net)                           |
| Archive OpenAPI           | [https://archive.meridiantest.net/openapi.json](https://archive.meridiantest.net/openapi.json) |
| WebSocket stream          | `wss://ws.meridiantest.net/v1/stream`                                                          |
| TradingView data          | [https://trading-view.meridiantest.net](https://trading-view.meridiantest.net)                 |
| Faucet and testnet tools  | [https://faucet.meridiantest.net](https://faucet.meridiantest.net)                             |
| Robinhood Chain RPC       | [https://rpc.testnet.chain.robinhood.com](https://rpc.testnet.chain.robinhood.com)             |
| Block explorer            | [https://explorer.testnet.chain.robinhood.com](https://explorer.testnet.chain.robinhood.com)   |

## Version Prefix

Perpetual-futures HTTP and WebSocket routes use the `/v1` prefix. For example:

```text
https://api.meridiantest.net/v1/product
wss://ws.meridiantest.net/v1/stream
```

Always get the EIP-712 domain from `GET /v1/rpc/config` in the same environment that receives the signed request.
