An experimental Hedera API written with Node.js and TypeScript. Uses the JavaScript SDK to interact with the Hedera Hashgraph.
- Node.js
- Create a developer testnet account on the Hedera portal
Clone the repo and change directory.
git clone https://github.com/stevengregory/hedera-express-api
cd hedera-express-apiIn the root directory of your project, create a .env.hedera file and add your testnet account OPERATOR_ID and OPERATOR_KEY. Now set the HEDERA_NETWORK to testnet.
# Hedera Operator Account ID
OPERATOR_ID = ENTER YOUR ACCOUNT ID
# Hedera Operator Private Key
OPERATOR_KEY = ENTER YOUR PRIVATE KEY
# Hedera Network
HEDERA_NETWORK = testnetInstall the npm packages.
npm installRun the application in dev mode.
npm run devRun the unit tests.
npm run tests