Flair
Real-time and historical custom data indexing for any evm chain.
Last updated
Was this helpful?
Real-time and historical custom data indexing for any evm chain.
Last updated
Was this helpful?
Real-time and historical custom data indexing for any evm chain.
offers reusable indexing primitives (such as fault-tolerant RPC ingestors, custom processors, re-org aware database integrations) to make it easy to receive, transform, store and access your on-chain data.
Compared to other alternatives the main reasons are:
🚀 Adopting parallel and distributed processing paradigm means high scalability and resiliency for your indexing stack. Instead of constrained sequential processing (e.g Subgraph).
🧩 Focused on primitives, which means on the left you plug-in an RPC and on the right you output the data to any destination database.
🚄 Native real-time stream processing for certain data workload (such as aggregations, rollups) for things like total volume per pool, or total portfolio per user wallet.
☁️ Managed cloud services avoid DevOps and irrelevant engineering costs for dApp developers.
🧑💻 Avoid decentralization overhead (consensus, network hops, etc) since we believe to enable best UX for dApps reading data must be as close to the developers as possible.
✅ Listen to any EVM chain with just an RPC URL.
Free managed RPC URLs for +8 popular chains already included.
Works with both websocket and https-only RPCs.
✅ Track and ingest any contract for any event topic.
Auto-track new contracts deployed from factory contracts.
✅ Custom processor scripts with Javascript runtime (with Typescript support)
Make external API or Webhook calls to third-party or your backend.
Get current or historical USD value of any ERC20 token amount of any contract address on any chain.
Use any external NPM library.
✅ Stream any stored data to your destination database (Postgres, MongoDB, MySQL, Kafka, Elasticsearch, Timescale, etc).
:::info
Boilerplate instructions will create a new cluster, generate an API Key, and set up a manifest.yml to index your first contract with sample custom processor scripts.
:::
2️⃣ Configure Cronos RPC nodes
Set a unique namespace, Cronos chainId and RPC endpoint in your config. Remember that you can add up to 10 RPC endpoints for resiliency.
Explore real-world usage of Flair indexing primitives for various use-cases.
1️⃣ Clone the template and follow the instructions
Learn more about the .
3️⃣ Sync some historical data using . Remember that enabled: true
flag in your config
enabled your indexer to capture data in real-time already.
4️⃣ your custom indexed data.
5️⃣ Stream the data to your .
are available to help you at any stage.