Serve API via command npm run api
, API endpoint will be available at localhost:port, where port is defined in .env
file. Default port: 3000
http://localhost:3000/
http://localhost:3000/transactions
account: account of sender or recipient
date_start: date of transaction seen on chain (optional)
date_end: date of transaction seen on chain (optional)
http://localhost:3000/transaction
hash: transaction hash you want to retrieve
Returns all assets
http://localhost:3000/assets
Returns asset by asset id or project id.
http://localhost:3000/asset
asset_id: asset id
project_id: project id
Returns all possible sections/methods fetched from a chain.
http://localhost:3000/analyze-data
section: name of section to search for (optional)
Get block data directly from a chain.
http://localhost:3000/get-block
block_number: block number to fetch