Osmosis API Integration
Overview
Osmosis is supported by Pocket Network's enterprise-grade infrastructure with guaranteed uptime, global edge network, and developer-first tooling.
Network Information
| Property | Value |
|---|---|
| Network Name | Osmosis |
| Native Token | OSMO |
| Cosmos Chain ID | osmosis-1 |
| Pocket Service ID | osmosis |
| Block Explorer | Mintscan |
Supported APIs
Osmosis is a self-evolving, customizable, and interoperable DeFi hub built on the Cosmos network. With Osmosis's supported methods, developers can effectively interact with the Osmosis chain, executing transactions, querying balances, and leveraging other functionalities to build and optimize their decentralized applications.
| API | Documentation |
|---|---|
| Osmosis JSON-RPC | view spec |
| CometBFT API | view spec |
| Cosmos SDK API | view spec |
Integration Examples
Quick Setup with Cosmos SDK
// Using @cosmjs/stargate
import { StargateClient } from '@cosmjs/stargate';
const client = await StargateClient.connect('YOUR_ENDPOINT');
// Get latest block height
const height = await client.getHeight();
console.log('Latest block height:', height);
// Get account info
const account = await client.getAccount('osmo1...');
console.log('Account info:', account);
Developer Resources
📚 Essential Links
🛠️ Tools & SDKs
💬 Community & Support
Public Endpoint
Free public RPC endpoint available with fair use limits. No API key required.