Skip to content
/ erc20-api Public

A service to fetch and query erc20 transactions

Notifications You must be signed in to change notification settings

tixl/erc20-api

Repository files navigation

ERC20 API

This service queries transactions of ERC20 contracts via Infura.io. It will store them in a db and let's you query the transcations by symbol and sender / receiver.

Config

  • dbpath: path to sqlite file, usually ./db/storeq.sqlite
  • infura: infura url
  • tokens: array of objects, that represent the tokens to track:
symbol: Symbol used for querying, e.g. WBTC
contract: Contract address in hex format. Must be erc20 contract
scanFrom: Number, start scanning here
interval: Number, amount of blocks that will be queried together. Bugg interval = more calls to infura.

API

/:symbol/to/:address get all transactions of symbol by receiver
/:symbol/from/:address get all transactions of symbol by sender

About

A service to fetch and query erc20 transactions

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published