An Alchemy RPC URL is the HTTPS endpoint that connects your application to Alchemy's blockchain node infrastructure. You obtain it from the Alchemy dashboard after creating an app, and it follows the format https://<network>.g.alchemy.com/v2/<api-key>. Alchemy supports Ethereum, Polygon, Solana, Arbitrum, Optimism, Base, and testnets such as Sepolia. This guide covers how to find your URL, how to use it with common libraries, and what to consider for production.
What Is an Alchemy RPC URL?
An Alchemy RPC URL is the HTTPS endpoint your application uses to send JSON-RPC requests to Alchemy's blockchain nodes. Instead of running your own node, you point your wallet, dApp, or backend at this URL and Alchemy routes the request to the correct network.
The URL is tied to a specific app and network inside your Alchemy account. It typically looks like this:
- Format: https://<network>.g.alchemy.com/v2/<your-api-key>
- Example (Ethereum mainnet): https://eth-mainnet.g.alchemy.com/v2/your-api-key
- Example (Sepolia testnet): https://eth-sepolia.g.alchemy.com/v2/your-api-key
- Example (Polygon mainnet): https://polygon-mainnet.g.alchemy.com/v2/your-api-key
- Example (Solana mainnet): https://solana-mainnet.g.alchemy.com/v2/your-api-key
https://eth-mainnet.g.alchemy.com/v2/your-api-keyHow to Find Your Alchemy RPC URL
You get your Alchemy RPC URL from the Alchemy dashboard. The process is straightforward and does not require any code.
After signing in, create a new app, choose the chain and network you want, and Alchemy generates an API key and endpoint for that app. You can view the full URL, copy it, and use it in your configuration. If you need a different network, you can create another app or switch the network in the dashboard.
- Sign in to your Alchemy account.
- Create a new app and select the blockchain and network.
- Open the app details to see the HTTPS RPC URL.
- Copy the URL and keep your API key private.
- Use separate apps or keys for development and production.
Supported Networks and Example Endpoints
Alchemy supports a range of EVM and non-EVM networks. The exact list can change over time, so check the dashboard for the current options. Common networks include Ethereum, Polygon, Arbitrum, Optimism, Base, and Solana, along with testnets such as Sepolia.
The endpoint hostname changes with the network. Below are representative patterns; your actual URL will include your own API key.
- Ethereum mainnet: https://eth-mainnet.g.alchemy.com/v2/your-api-key
- Sepolia: https://eth-sepolia.g.alchemy.com/v2/your-api-key
- Polygon mainnet: https://polygon-mainnet.g.alchemy.com/v2/your-api-key
- Solana mainnet: https://solana-mainnet.g.alchemy.com/v2/your-api-key
- Arbitrum mainnet: https://arb-mainnet.g.alchemy.com/v2/your-api-key
- Optimism mainnet: https://opt-mainnet.g.alchemy.com/v2/your-api-key
- Base mainnet: https://base-mainnet.g.alchemy.com/v2/your-api-key
https://polygon-mainnet.g.alchemy.com/v2/your-api-keyUsing the Alchemy RPC URL in Your Code
Once you have the URL, you can use it with standard JSON-RPC clients and web3 libraries. The URL works with any tool that accepts an HTTP RPC endpoint.
For example, with ethers.js you can create a provider directly from the URL. With web3.js or viem, you pass the same URL into the client constructor. For Solana, you use the URL with @solana/web3.js or another Solana client.
- ethers.js: new ethers.JsonRpcProvider('https://eth-mainnet.g.alchemy.com/v2/your-api-key')
- web3.js: new Web3('https://eth-mainnet.g.alchemy.com/v2/your-api-key')
- viem: createPublicClient({ transport: http('https://eth-mainnet.g.alchemy.com/v2/your-api-key') })
- Solana web3.js: new Connection('https://solana-mainnet.g.alchemy.com/v2/your-api-key')
const provider = new ethers.JsonRpcProvider('https://eth-mainnet.g.alchemy.com/v2/your-api-key');Alchemy RPC Pricing and API Key Considerations
Alchemy offers tiered plans that differ by compute units, request throughput, and features. Pricing and included usage can change, so refer to Alchemy's official pricing page for current details.
Your API key is part of the URL and should be treated as a secret. Exposing it in client-side code can lead to unauthorized use. For production, consider using a backend proxy or Alchemy's allowlist features to restrict where the key can be used.
- Free tier is available for development and small projects.
- Paid tiers increase compute units and throughput.
- Keep your API key out of public repositories.
- Use environment variables or a backend proxy in production.
- Check the dashboard for current network support and limits.
Alchemy RPC URL vs Other Providers
Alchemy is one of several RPC providers. Quicknode and OnFinality are alternatives, each with different network coverage and tooling. The right choice depends on your chains, latency needs, and budget.
If you need a specific network or a particular add-on service, compare the provider's current documentation. For many EVM and Solana use cases, Alchemy's dashboard and API make it easy to get started with a single URL.
- Alchemy: broad EVM and Solana support, developer dashboard, enhanced APIs.
- Quicknode: multi-chain support with marketplace add-ons.
- OnFinality: strong in Substrate and Polkadot ecosystems, with a focus on infrastructure reliability.
- Compare current network lists and pricing before committing.
Common Questions About Alchemy RPC URLs
Can I use the same Alchemy RPC URL for multiple networks? No. Each network has its own endpoint. You need a separate URL for Ethereum, Polygon, Solana, and so on.
Is the Alchemy RPC URL free? Alchemy offers a free tier with usage limits. For higher volume, paid plans are available. Check the official pricing page for current limits.
What is the Alchemy RPC URL for Sepolia? It follows the pattern https://eth-sepolia.g.alchemy.com/v2/your-api-key. You must create a Sepolia app in the dashboard to get a valid key.
What about Alchemy RPC Robinhood? Alchemy provides infrastructure for various projects, but there is no standard public Robinhood RPC URL. If you are looking for a specific chain, check Alchemy's supported networks in the dashboard.
- Each network requires its own endpoint.
- Free tier is available with limits.
- Sepolia URL: https://eth-sepolia.g.alchemy.com/v2/your-api-key
- Check the dashboard for the latest supported networks.