# Endpoints and transports

Choose a hosted SWQoS metro and use JSON-RPC, HTTP or QUIC for transaction submissions

Source: https://zerocopy.sh/docs/swqos/endpoints

Start with JSON-RPC at `https://sol.zerocopy.sh`. This hostname routes to the nearest metro. Create an [API key](/docs/api-keys) before sending.

## Choose a metro [#regions]

Use a named metro when you need to send to a specific location.

| Metro | Host |
| --- | --- |
| Frankfurt | `fra.sol.zerocopy.sh` |
| Amsterdam | `ams.sol.zerocopy.sh` |
| London | `lon.sol.zerocopy.sh` |
| New York | `nyc.sol.zerocopy.sh` |
| Los Angeles | `lax.sol.zerocopy.sh` |
| Tokyo | `tyo.sol.zerocopy.sh` |

For the local agent's explicit `upstreams` list, use a named metro with a port, such as `fra.sol.zerocopy.sh:443`, not `sol.zerocopy.sh`. See [metro selection and failover](/docs/swqos/agent/operations#regions).

## Choose a transport [#transports]

Use JSON-RPC unless your sender needs a binary interface. Every interface takes the same signed transactions and requires the same [tips](/docs/swqos/tips). A reply acknowledges [acceptance, not confirmation](/docs/swqos/confirmation#acceptance).

| Interface | Use it for | Reply | Preflight |
| --- | --- | --- | --- |
| [JSON-RPC](/docs/reference/json-rpc) | Solana client libraries and HTTP clients | Signature or bundle id, with structured errors | Optional for one transaction |
| [Binary HTTP](/docs/reference/http/binary) | Signed wire bytes | Signature or bundle id, with structured errors | None |
| [Base64 HTTP](/docs/reference/http/plaintext) | Base64 submissions without a JSON-RPC wrapper | Signature or bundle id, with structured errors | None |
| [QUIC](/docs/reference/quic) | Persistent connections with transaction or bundle streams | Bidirectional streams return replies; unidirectional streams do not | Optional for one transaction on a bidirectional stream |
| [Local agent](/docs/swqos/agent/install-and-run) | Local HTTP, QUIC or Linux IPC | Depends on the interface | See [local interfaces](/docs/swqos/agent/local-interfaces#preflight) |

### HTTP [#http]

Use HTTPS on TCP 443 to protect your key and transactions. The endpoint supports HTTP/1.1 and HTTP/2. TCP 80 serves the same routes over HTTP/1.1 or cleartext HTTP/2 without encryption.

Set `encoding: "base64"` in JSON-RPC when your signing library produces base64. The default is base58. Use the [example project](/docs/reference/json-rpc#example-project) when your client library discards structured rejection fields.

For raw HTTP, send signed bytes to `/binary`, or base64 text to `/plaintext`. Check the HTTP status before treating a success body as a signature or bundle id. See [HTTP reference](/docs/reference/http) for exact requests and replies.

### QUIC [#quic]

Connect on UDP 443 and keep the connection open across requests. Use bidirectional streams while integrating so you can inspect refusals. Follow the [QUIC reference](/docs/reference/quic) for authentication, connection settings and framing.

### Local agent [#local-agent]

The agent runs on your Linux host. Its listeners do not authenticate callers. Keep them on loopback and restrict IPC socket access: anyone who can reach a listener can submit under your license.

## Use a separate read RPC [#send-only]

SWQoS sends transactions and bundles and serves the queries in the [JSON-RPC reference](/docs/reference/json-rpc). Use a separate Solana RPC provider for blockhashes, balances, simulation, signature statuses and subscriptions.

Unsupported methods such as `getLatestBlockhash` return [`invalid_request`](/docs/reference/errors#invalid_request) with `problem: unknown_method`. Check [service status](https://status.zerocopy.sh) during an outage.

Continue with [transactions](/docs/swqos/transactions) or [bundles](/docs/swqos/bundles). If you need declared tips, [arrange billing first](/docs/swqos/tips#declared-tips).
