Hara scan is API service for https://scan.haratoken.app
>> Link : https://scan-api.haratoken.app/scan
Requirement:
- Docker
- docker-compose
Local Development
- [bash] ./run-dev.sh
- get_blocks
- get_transactions
- get_detail_transaction
- get_alias_function
- get_total_transaction
- get_total_supply
Get all blocks
list of data sorted with sort_key
Params
- *limit [int] : you must set limit fo
- last_sort_key [string] : latest sory key, default
false
, if filled must set start from latestsort_key
data
Return JSON
- message [string] : "success" and "failed"
- data [array] : [array of object]
Get all transactions
list of data sorted with sort_key
Params
- *limit [int] : you must set limit fo
- last_sort_key [string] : latest sory key, default
false
, if filled must set start from latestsort_key
data
Return JSON
- message [string] : "success" and "failed"
- data [array] : [array of object]
Get detail of transaction
Params
- *txhash [string] : hash of transaction hash
Return JSON
- message [string] : "success" and "failed"
- data [obj] : [object]
Run a web3 function via API service that hit private NODE Geth
Params
- *function [string] : function of web3, example "getTransactionReceipt"
- *params [array] : parameter of web3, so if you run web3 like web3.eth.getTransactionReceipt("txHash") so params just like ex : ["txhash"]
Return JSON
- message [string] : "success" and "failed"
- data [obj] : [object]
Get a total of transaction
Params : nothing
Return JSON
- message [string] : "success" and "failed"
- data [int] : total count of transaction