Fetches an address with the largest balance delta over the last N ETH blocks
- Install docker
- Create account at getblock.io and get an access token.
- In a root of the project, create .env file and fill it with the following:
BLK_GETBLOCK_ACCESS_TOKEN=my0access0toke0here ## Access token
BLK_LOG_LEVEL=info ## Log level [debug / info]
BLK_HTTP_ADDR=0.0.0.0:8085 ## Listen address
- Build it
make up
min go version go1.22.3
make bin.build
BLK_GETBLOCK_ACCESS_TOKEN=TOKEN BLK_LOG_LEVEL=info BLK_HTTP_ADDR=0.0.0.0:8085 $(pwd)/build/blk
Request parameters:
- blocks - type: uint (optional). Limits amount of blocks chat will be checked from head.
Default: 100, Max: 150
Example:
curl --request GET \
--url 'http://localhost:8085/most-changed'
Response:
{
"address": "0x3f0c3faeeeb9dad6ef6eb5fbab61039ff9067a07",
}
make test
make get.tools
make lint