> For a complete page index, fetch https://docs.conduit.xyz/llms.txt

# Ethereum RPC quickstart

> Connect to Ethereum mainnet and Sepolia with Conduit RPC Nodes.

## About Ethereum

[Ethereum](https://ethereum.org/) is a blockchain platform for smart contracts and decentralized apps. You can test your app on Sepolia before using Ethereum mainnet. Both networks use ETH for transaction fees. Sepolia ETH is for testing and has no real-world value.

## Ethereum JSON-RPC API

The Ethereum JSON-RPC API lets you read chain data and submit signed transactions through remote procedure calls (RPC) using standard Ethereum JSON-RPC methods. Conduit runs the nodes, so you can connect to Ethereum without running your own infrastructure. Your RPC URL includes an API key for authenticated access.

## Network details

| Network          | Type    | Chain ID | HTTP RPC URL                                          | WebSocket RPC URL                                   |
| ---------------- | ------- | -------- | ----------------------------------------------------- | --------------------------------------------------- |
| Ethereum         | mainnet | 1        | `https://ethereum-mainnet.n.conduit.xyz/YOUR_API_KEY` | `wss://ethereum-mainnet.n.conduit.xyz/YOUR_API_KEY` |
| Ethereum Sepolia | testnet | 11155111 | `https://ethereum-sepolia.n.conduit.xyz/YOUR_API_KEY` | `wss://ethereum-sepolia.n.conduit.xyz/YOUR_API_KEY` |

Sepolia is Ethereum's [recommended testnet for app development](https://ethereum.org/en/developers/docs/networks/).

## Get an Ethereum endpoint

#### Create a Conduit account

Sign in to the [Conduit App](https://app.conduit.xyz) with your work email.

#### Create an API key

Open [Nodes](https://app.conduit.xyz/nodes) and select **Create API key**. Follow the [API key guide](/rpc-nodes/getting-started/get-api-key) to configure access controls.

#### Copy your Ethereum RPC URL

In the **Endpoints** tab, find Ethereum mainnet or Sepolia and copy the RPC URL with your API key appended.

## Check your connection

Set `RPC_URL` to your Ethereum Sepolia URL, then request the chain ID. This read doesn't require a funded wallet.

```bash
export RPC_URL='https://ethereum-sepolia.n.conduit.xyz/YOUR_API_KEY'
curl "$RPC_URL" \
  --header 'Content-Type: application/json' \
  --data '{"jsonrpc":"2.0","id":1,"method":"eth_chainId","params":[]}'
```

The expected result is:

```json
{"jsonrpc":"2.0","id":1,"result":"0xaa36a7"}
```

For Ethereum mainnet, use the mainnet URL and expect `0x1`. If the chain ID differs, check your selected network before sending transactions. Keep API keys out of source control and shared logs.

## More information

#### [RPC Nodes](/rpc-nodes/overview)

Learn about Conduit Nodes.

#### [Web3 libraries](/rpc-nodes/getting-started/web3-libraries)

Connect with viem, ethers.js, or web3.py.

#### [Ethereum docs](https://ethereum.org/en/developers/docs/)

Explore Ethereum development guides.