Service for working with etherscan API. Developed using TypeScript and PostgreSQL. Implemented cron job via WorkerThread Node.js feature
$ docker-compose up --build
$ docker-compose -f development.docker-compose.yml up --build
- HOST: localhost
- PORT: 15432
- POSTGRES_USER: postgres
- POSTGRES_PASSWORD: postgres
- POSTGRES_DB: postgres
You should run script below manually
CREATE TABLE IF NOT EXISTS public.transactions
(
hash text primary key,
block_number bigint,
"from" text not null,
"to" text,
value decimal not null
);
- METHOD: GET
- URL: /api/block/last
- METHOD: GET
- URL: /api/block/:blockNumber