The Chorus One SDK is a all-in-one toolkit for building staking dApps.
Chorus One SDK
Welcome to the Chorus One SDK monorepo! Here you'll find all the necessary tools and libraries to develop powerful staking dApps across many networks, including Ethereum, Solana, TON, Avalanche, Cosmos, NEAR, Polkadot, Polygon, Hyperliquid, and Monad. This SDK allows developers to build, sign, and broadcast transactions, and to access staking information and rewards for user accounts.
Key Features
- Local Transaction Signing:
- Elimination of External Dependencies:
- Open-Source and Auditable:
- Comprehensive Transaction Management:
Users can seamlessly build, sign, and broadcast transactions for staking, unstaking, delegation, and reward withdrawal.
- Detailed Information Retrieval:
- Flexible Custody Solutions:
This flexibility ensures that the user can choose the solution that best fits their security and operational requirements.
- Fireblocks Integration:
- Integrated Validator Support:
- CLI:
Documentation
For detailed instructions on how to set up and use the Chorus One SDK, please visit our main documentation. There, you'll find comprehensive guides, examples, and API references to help you get started with building your staking dApp.
Installation
The Chorus One SDK is available as a set of npm packages and supports both Node.js and browser environments.
- Please ensure you have Node.js (v20) installed on your machine.
# Networks
npm install @chorus-one/ethereum --save npm install @chorus-one/solana --save npm install @chorus-one/ton --save npm install @chorus-one/avalanche --save npm install @chorus-one/cosmos --save npm install @chorus-one/near --save npm install @chorus-one/substrate --save # Polkadot and other Substrate chains npm install @chorus-one/polygon --save npm install @chorus-one/hyperliquid --save npm install @chorus-one/monad --save
Signers
npm install @chorus-one/signer-fireblocks --save npm install @chorus-one/signer-local --save npm install @chorus-one/signer-keplr --save npm install @chorus-one/signer-ledger-cosmos --save
CLI
npm install @chorus-one/staking-cli --save --global
Development
Project Structure
Building the SDK
The SDK is built using TypeScript and supports only ES modules both for Node.js and browser environments. To build the SDK, run the following command:
npm run build
This command will build all packages in the monorepo in a correct order.
Building the API reference
The project uses typedoc to generate API reference with additional markdown post-processing for better readability.
To build the documentation, run the following command:
make doc
License
The Chorus One SDK is licensed under the Apache 2.0 License. For more detailed information, please refer to the LICENSE file in the repository.