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 asset transactions. You can use asset_id or project_id to filter them out. Field project_id is ignored when asset_id is specified.
http://localhost:3000/assets/transactions
asset_id: asset id
project_id: project id
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/assets/transaction
hash: transaction hash you want to retrieve
Returns all impact actions
http://localhost:3000/impact_actions
Returns all auditors
http://localhost:3000/impact_actions/auditors
Returns all categories
http://localhost:3000/impact_actions/categories
Returns all oracles
http://localhost:3000/impact_actions/oracles
Returns all proxies
http://localhost:3000/impact_actions/proxy
Returns all approval requests
http://localhost:3000/impact_actions/approval_requests
Returns approval request
http://localhost:3000/impact_actions/approval_request
approval_request_id: approval request id
Returns all auditors for given approval request
http://localhost:3000/impact_actions/approval_requests/auditors
approval_request_id: approval request id
Returns all votes for given approval request
http://localhost:3000/impact_actions/approval_requests/auditors/votes
approval_request_id: approval request 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