Historic indexing
If you want to index only historic data between block ranges just put in the start_block and end_block in the YAML configuration file. This will index only the data between those blocks.
name: rETHIndexer
description: My first rindexer project
repository: https://github.com/joshstevens19/rindexer
project_type: no-code
networks:
- name: ethereum
chain_id: 1
rpc: https://mainnet.gateway.tenderly.co
storage:
postgres:
enabled: true
contracts:
- name: RocketPoolETH
details:
- network: ethereum
address: "0xae78736cd615f374d3085123a210448e74fc6393"
start_block: 18600000
end_block: 18718056
abi: ./abis/RocketTokenRETH.abi.json
include_events:
- Transfer
- Approval
Live indexing
If you want to index live data you can just remove the start_block and end_block from the YAML configuration file. This will index from the latest block and then index all new blocks as they come in.
name: rETHIndexer
description: My first rindexer project
repository: https://github.com/joshstevens19/rindexer
project_type: no-code
networks:
- name: ethereum
chain_id: 1
rpc: https://mainnet.gateway.tenderly.co
storage:
postgres:
enabled: true
contracts:
- name: RocketPoolETH
details:
- network: ethereum
address: "0xae78736cd615f374d3085123a210448e74fc6393"
abi: ./abis/RocketTokenRETH.abi.json
include_events:
- Transfer
- Approval
Historic and live indexing
If you want to index historic data and then live data you can put in the start_block you wish to index the data from and then remove the end_block from the YAML configuration file. This will index from the block you specified and then index all new blocks as they come in.
name: rETHIndexer
description: My first rindexer project
repository: https://github.com/joshstevens19/rindexer
project_type: no-code
networks:
- name: ethereum
chain_id: 1
rpc: https://mainnet.gateway.tenderly.co
storage:
postgres:
enabled: true
contracts:
- name: RocketPoolETH
details:
- network: ethereum
address: "0xae78736cd615f374d3085123a210448e74fc6393"
start_block: 18600000
abi: ./abis/RocketTokenRETH.abi.json
include_events:
- Transfer
- Approval