# Regions & endpoints (/velox/regions)

> The four Velox Yellowstone gRPC endpoints in Frankfurt, Amsterdam, New York and Tokyo, TLS or plaintext, and how to pass them to a gRPC client.



Velox runs in **four metros**, and every endpoint follows the same shape:

```text
velox.<metro>.corvus-labs.io:40404
```

| Metro          | Code  | Velox endpoint                   |
| -------------- | ----- | -------------------------------- |
| 🇩🇪 Frankfurt | `fra` | `velox.fra.corvus-labs.io:40404` |
| 🇳🇱 Amsterdam | `ams` | `velox.ams.corvus-labs.io:40404` |
| 🇺🇸 New York  | `nyc` | `velox.nyc.corvus-labs.io:40404` |
| 🇯🇵 Tokyo     | `tyo` | `velox.tyo.corvus-labs.io:40404` |

Velox isn't offered in London, Dublin, Singapore, Salt Lake City or Šiauliai. Access is per metro: you can stream only in the metros your Velox order covers, from the server IP it names. Your [dashboard](https://dashboard.corvus-labs.io) shows which.

## TLS or plaintext

Port 40404 takes both on the same hostname. Pick with the scheme:

| Scheme                                       | Transport        | Client credentials                      |
| -------------------------------------------- | ---------------- | --------------------------------------- |
| `https://velox.<metro>.corvus-labs.io:40404` | TLS              | TLS with the system's root certificates |
| `http://velox.<metro>.corvus-labs.io:40404`  | Plaintext HTTP/2 | Insecure channel credentials            |

The scheme and the credentials have to agree: TLS credentials against `http://`, or plaintext against `https://`, fails the handshake.

## Pass the endpoint to a gRPC client

`@triton-one/yellowstone-grpc` reads the scheme itself. `@grpc/grpc-js` dials a bare `host:port` target, so hand it the URL's `host` and choose the credentials. tonic takes the URL directly, but only connects over TLS when you give the channel a TLS config.

<Tabs items={['Yellowstone client (TypeScript)', '@grpc/grpc-js', 'Rust (tonic)']}>
  <Tab value="Yellowstone client (TypeScript)">
    ```ts
    // https:// connects over TLS, http:// in plaintext. No x-token.
    const client = new Client('https://velox.fra.corvus-labs.io:40404', undefined, {});
    await client.connect();
    ```
  </Tab>

  <Tab value="@grpc/grpc-js">
    ```javascript
    const { host } = new URL('https://velox.fra.corvus-labs.io:40404');

    // TLS
    const client = new geyser.Geyser(host, grpc.credentials.createSsl());

    // Plaintext, with an http:// endpoint
    // const client = new geyser.Geyser(host, grpc.credentials.createInsecure());
    ```
  </Tab>

  <Tab value="Rust (tonic)">
    ```rust
    use tonic::transport::{Channel, ClientTlsConfig};

    // TLS
    let channel = Channel::from_static("https://velox.fra.corvus-labs.io:40404")
        .tls_config(ClientTlsConfig::new().with_native_roots())?
        .connect()
        .await?;

    // Plaintext: no TLS config on the channel.
    let channel = Channel::from_static("http://velox.fra.corvus-labs.io:40404")
        .connect()
        .await?;
    ```

    `with_native_roots()` needs tonic's `tls-native-roots` feature.
  </Tab>
</Tabs>

## Pick a region

Choose by measured round trip from the host that will actually run the client. Solana RPC runs in all four Velox metros, so your gap fills and confirmations can stay in the same metro as your stream.

## Fail over

If a metro loses its Velox backend, the endpoint keeps serving from another Velox metro: same hostname, nothing to change on your side. Expect the extra round trip while it lasts.

The live stream doesn't survive the switch. Reconnect, write your complete filter set again, and fill the gap through Solana RPC: there's no `from_slot` replay ([reconnect](/velox/quickstart#reconnect)).
