- Basic smart contract event indexing using Postgres database GoEthereum client/SDK and Infura as Node.
- Infura account (API Key, Network Endpoints WSS/HTTPS)
- Docker
- create .env file and use .env_tmpl to populate it with config data
Run command in the project folder:
docker-compose up --build
- Install Go(golang)
- Run in psql scripts from scripts/db folder
- Run command root project folder
go run main/main.go
- delete "db-data" folder from root project folder
- GET: /api/events/:address
- GET: /api/indexed/:id
- POST: /api/events/add/:address