Documentation Index
Fetch the complete documentation index at: https://docs.stablenet.network/llms.txt
Use this file to discover all available pages before exploring further.
StableNet exposes a standard JSON-RPC API compatible with Ethereum tooling. Query historical logs, subscribe to real-time events, and read contract state using ethers.js, viem, or direct RPC calls.For sending transactions, see Stablecoin Transfers. For the full RPC method reference, see RPC API Reference.
Quickstarts
Listen to Contract Events
Beginner. Subscribe to contract events using ethers.js and WebSocket.
Connect to StableNet
Beginner. Set up your RPC provider.
Why StableNet for reading on-chain data
Standard Ethereum JSON-RPC
Standard Ethereum JSON-RPC
StableNet implements the standard
eth_ namespace — eth_getLogs, eth_getBlock, eth_call, eth_getTransactionReceipt, and more. Any library or tool that speaks Ethereum JSON-RPC works without modification. See RPC API Reference for the full method list.WebSocket subscriptions
WebSocket subscriptions
Real-time event subscriptions via
eth_subscribe are supported over WebSocket. Subscribe to newHeads, logs, or newPendingTransactions. Bloom filter optimization reduces the overhead of high-volume log queries across large block ranges.1-second blocks for fast indexing
1-second blocks for fast indexing
With ~1-second block times, your indexer or event listener receives new data nearly in real time. Deterministic finality means you don’t need to handle reorgs — every confirmed block is final.
Polling fallback for HTTP clients
Polling fallback for HTTP clients
For environments without WebSocket support, polling-based filters (
eth_newFilter, eth_getFilterChanges) are available. Filters expire after 5 minutes of inactivity and are cleaned up automatically.
