Blockservice Installation 🔗︎

Preparation 🔗︎

  1. Mongodb(version > 4.0)
  2. Nodejs and NPM
  3. Python Estimation Script. Click here to figure out how to install it.

Install 🔗︎

git clone https://github.com/Lamden/lamden_block_service.git
cd lamden_block_service/
npm install

Run 🔗︎

npm run start

Configure 🔗︎

You can custom blockservice by creating/editing .env file at the root of the project folder. Click here to get more details.

Sync Chain Data (Optional) 🔗︎

The first time you run the block service, it will take long time to sync blocks data. In order to avoid waiting for so long, you can use mongodump to export data from another block service to you own block service.

Api Doc 🔗︎

npm run docs

Then you can open {host}:{port}/api-docs/ to check the API documentation served at local. For details, please check at here.