Supported networks
deprecation notice
Linea Goerli is being deprecated. We discourage new development with this testnet and recommend using Linea Sepolia instead.
Use one of these endpoints as your Linea API provider.
Ensure you replace <API-KEY>
with an API key from your Infura dashboard.
Network | Description | URL |
---|---|---|
Mainnet | JSON-RPC over HTTPS | https://linea-mainnet.infura.io/v3/<API-KEY> |
Mainnet | JSON-RPC over WebSocket | wss://linea-mainnet.infura.io/ws/v3/<API-KEY> |
Testnet (Goerli) | JSON-RPC over HTTPS | https://linea-goerli.infura.io/v3/<API-KEY> |
Testnet (Goerli) | JSON-RPC over WebSocket | wss://linea-goerli.infura.io/v3/<API-KEY> |
Testnet (Sepolia) | JSON-RPC over HTTPS | https://linea-sepolia.infura.io/v3/<API-KEY> |
Testnet (Sepolia) | JSON-RPC over WebSocket | wss://linea-sepolia.infura.io/v3/<API-KEY> |