Skip to content

Pier-Two/staking-api-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Staking API Examples

A TypeScript project demonstrating how to interact with the staking API.

Setup

  1. Install dependencies:
npm install
  1. Set up your API key:
    • Create a .env file in the root directory
    • Add your API key: API_KEY=your-api-key-here

Usage

Development

To run the project in development mode:

npm run dev

Production

To build and run the project:

npm run build
npm start

Testing

To run tests:

npm test

Project Structure

  • src/ - Source files
    • index.ts - Main application file
  • dist/ - Compiled JavaScript files (created after build)
  • package.json - Project configuration and dependencies
  • tsconfig.json - TypeScript configuration

About

A collection of code examples for interacting with the Pier Two staking API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published