Mode Data: Index DeFi, Agents, and Onchain Activity
Index Mode's contract events, token transfers, and decoded transactions in one pipeline, delivered to your own database. Real-time and complete historical data, no node to run.
Mode bills itself as the modular DeFi L2 built to dominate DeFi with AI-powered apps and agents, an Ethereum Layer 2 on the OP Stack. Its push is DeFAI: verifiable AI trading agents, a native perpetuals DEX built with Orderly, and restaking and yield apps. You can read how the team frames it at mode.network.
That mix is the data problem. Mode is an EVM chain where DeFi protocols, AI agents, and a long tail of yield apps emit contract events, token transfers, and decoded calls block after block. Indexing Co covers Mode in a single pipeline, decodes the raw chain into the shape you want, and delivers it to your own PostgreSQL, warehouse, or webhook. Real-time and full history, with no node to operate.
Why Mode data is hard
What Indexing Co delivers for Mode
Stand up and maintain the whole stack yourself.
- Run a Mode archive node or wire up a third-party RPC.
- Fetch and decode logs, traces, and receipts against the right ABIs.
- Track proxy upgrades and per-protocol event schemas by hand.
- Build backfill, reorg handling, and real-time delivery from scratch.
One pipeline sources, decodes, and delivers Mode to your store.
- Mode contract events, token transfers, and decoded txs in a single pipeline.
- Decoded data, shaped by your JavaScript transform.
- Lands in your PostgreSQL, BigQuery, warehouse, or webhook.
- Real-time delivery plus complete backfilled history. No node, no RPC babysitting.
What you can index
| EVM data type | On Mode, for example |
|---|---|
| Contract events and logs | Perps DEX trades, lending borrows, vault deposits |
| Token transfers (ERC-20, ERC-721) | MODE and stablecoin transfers, ETH gas movements |
| Decoded transactions and traces | AI agent executions and smart-account user operations |
| Protocol and account state | Restaking vault balances, MODE staking positions |
A transform, not a subgraph
You write the transform in JavaScript, not AssemblyScript, and change it without re-indexing from block zero. Indexing Co runs your function over each block server-side: decode the logs you care about and return rows for your destination.
// Indexing Co transform: reshape each block into rows for your database
function transform(block) {
const results = [];
const signatures = [
'event Transfer(address indexed from, address indexed to, uint256 value)'
];
for (const tx of block.transactions || []) {
for (const log of tx.receipt?.logs || []) {
const event = utils.evmDecodeLogWithMetadata(log, signatures);
if (!event) continue;
results.push({
chain: block._network,
block: Number(block.number),
tx_hash: tx.hash,
contract_address: log.address?.toLowerCase(),
from: event.decoded.from,
to: event.decoded.to,
value: event.decoded.value,
});
}
}
return results;
}
Mode with Indexing Co
You want full control of node infrastructure and have the team to operate a Mode archive node, decode every protocol's ABIs, and build backfill and reorg handling in-house.
You want Mode contract events, token transfers, and decoded transactions delivered to your own database, with real-time plus complete history and no infrastructure to run.
Related Reading
- DeFi Data Infrastructure
- Agentic Engineering Data Infrastructure
- Subgraph Migration: Moving Off The Graph's Hosted Service
- Indexing Co vs Subgraphs
FAQ
Do I need to run a Mode node?
No. Indexing Co sources Mode blocks, logs, and traces for you, including full historical data, so you never operate an archive node or babysit an RPC endpoint.
Can I index any protocol on Mode?
Yes. Point a pipeline at any Mode contract or set of contracts, from the perps DEX and restaking vaults to AI agent contracts or your own deployments, and we decode the events against the right ABI.
Can I track Mode's AI agents and DeFi activity together?
Yes. Because the pipeline decodes any contract you target, you can capture agent executions, trades, and vault movements side by side and join them in your own schema.
Does Indexing Co handle Mode reorgs and proxy upgrades?
Yes. The pipeline accounts for chain reorganizations and tracks proxy implementation changes so your decoded data stays correct as contracts upgrade.
Can I get complete historical Mode data?
Yes. We backfill from your chosen start block and merge it with real-time data, so your Mode dataset is gap-free from genesis forward if you want it.
Get Started
Index Mode in minutes. Set up your first Mode contract or token pipeline without running a node.