A TypeScript project demonstrating how to interact with the staking API.
- Install dependencies:
npm install- Set up your API key:
- Create a
.envfile in the root directory - Add your API key:
API_KEY=your-api-key-here
- Create a
To run the project in development mode:
npm run devTo build and run the project:
npm run build
npm startTo run tests:
npm testsrc/- Source filesindex.ts- Main application file
dist/- Compiled JavaScript files (created after build)package.json- Project configuration and dependenciestsconfig.json- TypeScript configuration