Skip to content

dattabot-blockchain/hara-scan

Repository files navigation

Introduction

Hara scan is API service for https://scan.haratoken.app

API Domain

>> Link : https://scan-api.haratoken.app/scan

Design Review

>> Go To Design Review Link

Getting Started

Requirement:

  1. Docker
  2. docker-compose

Local Development

  1. [bash] ./run-dev.sh

API Endpoint

  1. get_blocks
  2. get_transactions
  3. get_detail_transaction
  4. get_alias_function
  5. get_total_transaction
  6. get_total_supply

API DETAIL

get_blocks

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 latest sort_key data

Return JSON

  • message [string] : "success" and "failed"
  • data [array] : [array of object]

get_transactions

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 latest sort_key data

Return JSON

  • message [string] : "success" and "failed"
  • data [array] : [array of object]

get_detail_transaction

Get detail of transaction

Params

  • *txhash [string] : hash of transaction hash

Return JSON

  • message [string] : "success" and "failed"
  • data [obj] : [object]

get_alias_function

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_total_transaction

Get a total of transaction

Params : nothing

Return JSON

  • message [string] : "success" and "failed"
  • data [int] : total count of transaction

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages