본문으로 건너뛰기

Injective RPC

With Quicknode, you get access to our global Injective network which always routes your API requests to the nearest available location, ensuring low latency and the fastest speeds.

What is Injective?

Injective is a Layer 1 blockchain built for decentralized finance (DeFi). It provides core financial features like exchanges, derivatives, lending, staking, and oracles directly on-chain, so developers don’t need to build everything from scratch with complex smart contracts. Injective is built with the Cosmos SDK, giving it fast transaction finality and interoperability with other blockchains in the Cosmos ecosystem. It also offers a smooth, gas-free user experience, a built-in decentralized order book, support for smart contracts through CosmWasm, and tools for creating specialized blockchains tailored to unique applications.

Interacting With Injective’s APIs

Injective nodes expose a JSON-RPC interface that is compatible with Ethereum’s JSON-RPC API. This means developers can use Ethereum’s native tools, such as Foundry, Hardhat, and popular Web3 libraries, without modification.

However, due to Injective’s architectural differences, some RPC methods may behave differently from those on Ethereum. The Quicknode Injective documentation is continuously evolving as the chain undergoes upgrades and changes, so we highly recommend cross-referencing with the official Injective documentation for the latest updates and RPC differences.


Make Injective API Calls

The quickest way to start building on Injective is to create a Quicknode endpoint and send your first request.

Quicknode provides managed Injective endpoints, offering:

  • 높은 신뢰성 — 가동 중단 시간을 최소화하도록 설계된 전 세계에 분산된 인프라
  • 향상된 성능 — 프로덕션급 앱을 위한 지연 시간 및 요청 처리 최적화

QuickStart 페이지를 방문하여 endpoint 생성하고 첫 번째 요청을 보내보세요.


지원되는 네트워크

Quicknode provides access to multiple Injective networks.

Mainnet
유형:제작
체인 ID:
1776
HTTP:
WSS:
아카이브:없음
Pruning:pruning-keep-recent = "1832727" and pruning-interval = "16"
Testnet
유형:Testnet
체인 ID:
1439
HTTP:
WSS:
아카이브:없음
Pruning:pruning-keep-recent = "1832727" and pruning-interval = "16"
아카이브 데이터 이용 가능 여부

Injective endpoints on Quicknode do not currently offer archive data. Nodes are configured with pruning, retaining approximately the most recent 1,832,727 blocks of state history. Queries for blocks or state outside the retained range will return an error.

To query data within the available range, use the cosmos 높이 header with REST API requests or specify the 높이 parameter with Tendermint API requests. Ensure the block height used is within the recent pruning window.

Cosmos API 예시:

curl --location 'https://docs-demo.injective-mainnet.quiknode.pro/cosmos/distribution/v1beta1/delegators/inj1jclptl8mx6vtc4l6mjv5smwdpxmc2pp3kelmjr/rewards' \
--header 'x-cosmos-block-height: 113823949'

Tendermint API 예시:

curl --location 'https://docs-demo.injective-mainnet.quiknode.pro/block?height=113823949'