Skip to navigation

Ethereum RPC quickstart

About Ethereum

Ethereum 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

NetworkTypeChain IDHTTP RPC URLWebSocket RPC URL
Ethereummainnet1https://ethereum-mainnet.n.conduit.xyz/YOUR_API_KEYwss://ethereum-mainnet.n.conduit.xyz/YOUR_API_KEY
Ethereum Sepoliatestnet11155111https://ethereum-sepolia.n.conduit.xyz/YOUR_API_KEYwss://ethereum-sepolia.n.conduit.xyz/YOUR_API_KEY

Sepolia is Ethereum’s recommended testnet for app development.

Get an Ethereum endpoint

1

Create a Conduit account

Sign in to the Conduit App with your work email.

2

Create an API key

Open Nodes and select Create API key. Follow the API key guide to configure access controls.

3

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.

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:

{"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