Injective RPC
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:
- Alta fiabilidad: infraestructura distribuida a nivel mundial diseñada para minimizar el tiempo de inactividad
- Rendimiento mejorado: latencia y gestión de solicitudes optimizadas para aplicaciones de nivel de producción
Visita la página de inicio rápido para crear tu punto final y enviar tu primera solicitud.
Redes compatibles
Quicknode provides access to multiple Injective networks.
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 x-cosmos-altura-del-bloque header with REST API requests or specify the altura parameter with Tendermint API requests. Ensure the block height used is within the recent pruning window.
Ejemplo de la API REST de Cosmos:
curl --location 'https://docs-demo.injective-mainnet.quiknode.pro/cosmos/distribution/v1beta1/delegators/inj1jclptl8mx6vtc4l6mjv5smwdpxmc2pp3kelmjr/rewards' \
--header 'x-cosmos-block-height: 113823949'
Ejemplo de la API de Tendermint:
curl --location 'https://docs-demo.injective-mainnet.quiknode.pro/block?height=113823949'
Complete reference for developers building on Injective with Quicknode:
Inicio rápido
Get started with Injective quickly. Follow our step-by-step quickstart to set up your endpoint and make your first API request.
Puntos de conexión de los proveedores
Learn how to configure and manage your Injective endpoints for optimal performance and reliability.
Descripción general de la API
Descubre las API compatibles, las redes, los productos de Quicknode y las funciones mejoradas de las API para crear aplicaciones potentes.
Mercado
Descubre e integra potentes complementos y herramientas del Quicknode Marketplace para mejorar tus aplicaciones web3.
Seguridad de los dispositivos finales
Protege tus dispositivos finales mediante la autenticación, las listas blancas y las mejores prácticas de seguridad.
Códigos de error
Understand common error codes and troubleshooting steps for Injective API requests.