For AI agents: the documentation index is at /llms.txt. Markdown versions of pages are available by appending .md to the URL.
Skip to main content

Local chain - Hardhat


A local chain can be used as a data source for your indexer. You simply need to specify it in config.yaml.

Defining Chain Configurations​

name: IndexerName # Specify indexer name
description: Indexer Description # Include indexer description
chains:
- id: 31337 # Local Hardhat default chain id
rpc: http://localhost:8545 # RPC URL for your local Hardhat chain
start_block: 0 # Specify the starting block
contracts:
- name: ContractName
address:
- "0xYourContractAddress1" # Replace with your contract addresses
- "0xYourContractAddress2"
events:
- event: "Transfer(address indexed from, address indexed to, uint256 value)" # Event signature

--