SubQuery Learn
Practical guides for on-chain builders.
Work through real RPC, indexing, and debugging tasks with runnable examples and checks you can bring into your own stack.
Browse guidesThe library
3 guidesExplore the guides
- Indexing4 min read
Replay EVM events without duplicate side effects
Build an idempotent EVM event consumer with a block-hash cursor, transactional outbox, and a replay drill for retries and chain reorganizations.
Read guide - RPC Operations3 min read
Verify an EVM contract deployment with RPC
Catch wrong-chain deployments in CI by checking the RPC chain ID, transaction receipt, canonical block hash, and runtime bytecode before publishing an address.
Read guide - Solana3 min read
Read Solana wallet token balances without stale snapshots
Sum token accounts by mint using exact integers, keep a slot watermark, and prevent a slower Solana RPC response from replacing a newer wallet balance.
Read guide