Super simple indexer for eth that indexes token transactions
- Indexes simple token transactions
- Indexes to sqlite database (other db types can be configured easily)
Create config.yml
file with following:
eth:
url: "https://mainnet.infura.io/v3/..."
replacing the url with path to your node (or with valid infura key)
Compile the project from source:
go build -o indexer.exe .\main\main.go
Run the application:
.\indexer.exe
The application will create database called index.database
(if using sqlite).
- Index contract creation transactions
- Index multi token transfer transactions
- Index erc20 transferFrom transactions
- Index all erc20 operations
- Index all erc721 (NFT) transactions
- Index all erc1155 (NFT) transactions
To generate/update erc20.go from abi
abigen.exe --abi
.\erc20.abi --pkg erc20 --out erc20\erc20.go