- API endpoint: http://api.lab.bkchain.tk/
- Dashboard: http://admin.lab.bkchain.tk/
- Old dashboard: http://lab.bkchain.tk/
- Static files for upload: http://static.lab.bkchain.tk/
- Clone repository, installing packages with
npmoryarn - Copy file
.env.exampleto file.envwith the same path. - Change variables in new file
.envwith your values.
View docs/APIs.md
On postman: https://documenter.getpostman.com/view/2583401/RzZ9FK8g
With truffle is installed as devDependencies, you can run truffle by:
# Run directly
./node_modules/.bin/truffle compile
# Run via package.json
yarn run sol
yarn solSolidity files in contracts/*.sol will be compiled to build/contracts/*.json
With ganache-cli is installed as devDependencies, you can run local EVM with ganache by:
# Run directly
./node_modules/.bin/ganache-cli
# Run via package.json
npm run evm
yarn evmIt will run on 127.0.0.1:8545
- Manage accounts and wallet:
- Private Key to Account: https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#privatekeytoaccount
- Add account to wallet: https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#wallet-add
- Remove account from wallet: https://web3js.readthedocs.io/en/1.0/web3-eth-accounts.html#wallet-remove
- Deploy smart contract: https://web3js.readthedocs.io/en/1.0/web3-eth-contract.html#deploy
- Use methods in Contract:
- Some utils: