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-api
In 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 = testnet
Install the npm packages.
npm install
Run the application in dev mode.
npm run dev
Run the unit tests.
npm run tests