The project is forked from hnscan-backend. This is a plugin of hsd, and it provides API for hns explorer.
-
npm install
-
Copy file
hsd.conf.example
, and rename it tohsd.conf
. The file is the config file of the HSD. In addition to the necessary config listed, you can also add the configuration supported in the HNS document:# Index transactions. index-tx: true # Index transactions and utxos by address. index-address: true # Plugin directory. This address is the absolute path of the index file of hns-backend. plugins: /home/ubuntu/hns-backend/lib/index.js # The hsd datadir. prefix: /home/ubuntu/.hsd
-
Copy file
hnscan.conf.example
, and rename it tohnscan.conf
. This config file is the hns-backend config and needs to be placed in the node data folder, that is, in the prefix folder configured above.http-host: 0.0.0.0 http-port: 8080 no-auth: true
-
Start:
./node_modules/.bin/hsd --config hsd.conf
Here is an API documentation for developers.