# Swop RPC overview (/docs/rpc)

<Callout type="warn" title="Preview: Swop RPC is not generally available">
The gateway at `rpc.swopme.co` is running, but it routes to third-party node providers today: Swop's own node fleet is still being built. Projects are created for preview partners only, and limits and pricing can change. [Request access](/docs/rpc/request-access).
</Callout>

## What's an RPC? [#whats-an-rpc]

Every app that touches a blockchain needs a way to **talk to it**: read a balance, look up a transaction, send a signed transaction. That conversation goes through an **RPC endpoint**, a URL that speaks the chain's JSON-RPC protocol and is backed by a node that has a copy of the chain.

Running nodes yourself is expensive, so most apps rent RPC from a provider. **Swop RPC** is Swop's own gateway: one URL pattern for every supported chain, with per-project keys, rate limits and usage metering. It's the same gateway Swop's own apps are moving onto.

## How it works [#how-it-works]

```text
https://rpc.swopme.co/<network>/v3/<projectId>
```

- **`<network>`** picks the chain (see below).
- **`<projectId>`** identifies your project: its limits, its metering and, if it requires one, its secret.
- The gateway forwards your request to a healthy upstream node and retries on another one if a node fails.
- The same path accepts **WebSocket** connections (`wss://`) for subscriptions.

## Networks [#networks]

| Network key | Chain |
|---|---|
| `eth-mainnet` | Ethereum |
| `eth-sepolia` | Ethereum Sepolia (testnet) |
| `base-mainnet` | Base |
| `base-sepolia` | Base Sepolia (testnet) |
| `polygon-mainnet` | Polygon PoS |
| `polygon-amoy` | Polygon Amoy (testnet) |
| `arbitrum-mainnet` | Arbitrum One |
| `optimism-mainnet` | OP Mainnet |
| `robinhood-mainnet` | Robinhood Chain |
| `solana-mainnet` | Solana |
| `solana-devnet` | Solana Devnet |

EVM networks speak Ethereum JSON-RPC (`eth_*` methods). Solana networks speak Solana JSON-RPC (`getBalance`, `getVersion` and so on).

<Cards>
  <Card title="Quickstart" href="/docs/rpc/quickstart" description="Your first call from curl, viem, ethers and Solana web3.js." />
  <Card title="Authentication" href="/docs/rpc/authentication" description="Project IDs and secrets, and the three ways to send a secret." />
</Cards>
