DEVELOPER DOCUMENTATION
Build on a clear contract.
Explore indexer configuration, asynchronous chain validation and consistency modes, or start configuring directly in the dashboard.
Start in the dashboard
Create and validate indexers with visual forms, manage destinations, and review actual usage and past statements. API configuration examples follow below.
Overview
IndexingNetwork indexes EVM contract events. The dashboard provides indexer management, event delivery, actual usage and monthly statements. This page introduces configuration and validation APIs; the website does not execute these operations.
Configuration
An indexer configuration identifies the chain, contracts, event ABI, full event signatures, starting point, consistency mode and destination versions. The example below is the complete draft request.
{
"name": "Token Transfer",
"config": {
"chain_id": "1",
"contract_addresses": [
"0x1111111111111111111111111111111111111111"
],
"abi": [
{
"type": "event",
"name": "Transfer",
"anonymous": false,
"inputs": [
{
"name": "from",
"type": "address",
"indexed": true
},
{
"name": "to",
"type": "address",
"indexed": true
},
{
"name": "value",
"type": "uint256",
"indexed": false
}
]
}
],
"event_signatures": [
"Transfer(address,address,uint256)"
],
"filters": [],
"start": {
"kind": "now"
},
"consistency": {
"mode": "finalized"
},
"destinations": [
{
"destination_id": "dst_dev",
"version": 1
}
],
"retention_days": 90
}
}
Replace the placeholder contract address with a deployed contract matching the ABI. dst_dev requires the backend’s development seed. Chain IDs and block heights are decimal strings; credentials never belong in the website.
Download request JSONValidation
Submit a validation for a specific immutable revision. The API returns 202 with a status_url; fetch that URL to inspect progress, warnings and decoded samples. Sampling supports recent blocks, an explicit range or one transaction.
{
"revision": 1,
"sample": {
"kind": "recent",
"max_blocks": 2000
}
}
Checks cover configuration, RPC chain identity and finality, contract code, logs, ABI decoding, filters and destination binding. No sample events means passed_with_warnings, not proof that decoding succeeded. Results normally remain valid for 30 minutes.
API reference
The five endpoints below cover configuration and validation. API clients send a Bearer token issued by the backend operator. Both POST endpoints require an Idempotency-Key; the same key replays the result for 24 hours, while a different body returns 409.
| Method | Endpoint | Behavior |
|---|---|---|
| POST | /v1/indexers | Create a draft and immutable revision 1. |
| GET | /v1/indexers/{id} | Read indexer metadata and ETag. |
| GET | /v1/indexers/{id}/revisions/{revision} | Read the configuration and its hashes. |
| POST | /v1/indexers/{id}/validations | Queue asynchronous revision validation. |
| GET | /v1/validations/{id} | Read validation steps, warnings and samples. |
Consistency
- Finalized: requires the RPC finalized tag. There is no silent fallback to a fixed confirmation count.
- Optimistic: emit_finalized defaults to true and requires finality support. Setting it to false permits validation with a warning when finality is unavailable.
- At runtime, apply, revert and finalize messages distinguish application, rollback and final confirmation. Optimistic consumers must handle rollbacks.
Local development
Run the separate Go backend with a MongoDB 7+ replica set, apply migrations explicitly, configure your RPC and tenant token, then start the API and validation worker. The API defaults to http://127.0.0.1:8080.
curl --request POST \
http://127.0.0.1:8080/v1/indexers \
--header "Authorization: Bearer YOUR_TOKEN" \
--header "Idempotency-Key: create-transfer-0001" \
--header "Content-Type: application/json" \
--data-binary @create-indexer.json
The following request targets a locally running backend. Replace the token before use. The documentation’s copy controls do not execute requests.