Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.injective.network/llms.txt

Use this file to discover all available pages before exploring further.

Alchemy provides reliable JSON-RPC endpoints for the Injective EVM. Use this guide to create an Alchemy app and start making requests.
Injective + Alchemy quick start (1 min) - YouTube

Prerequisites

  • An Alchemy account (sign up free)
  • Basic familiarity with EVM RPC endpoints

Steps

1

Create an app

From the Alchemy dashboard, create a new app and select Injective as the chain. Choose the network:
  • Injective EVM Mainnet: Chain ID 1776
  • Injective EVM Testnet: Chain ID 1439
2

Copy your RPC endpoints

Open your app and copy the HTTPS and WebSocket endpoints:
https://inj-mainnet.g.alchemy.com/v2/<YOUR_API_KEY>
wss://inj-mainnet.g.alchemy.com/v2/<YOUR_API_KEY>
Keep your API key private, treat it like a password.
3

Start building

Use the endpoint with your preferred library:
import { JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(
  "https://inj-mainnet.g.alchemy.com/v2/<YOUR_API_KEY>"
);

const blockNumber = await provider.getBlockNumber();
console.log("Latest block:", blockNumber);

Next steps

Last modified on May 19, 2026