Overview
P2P.ORG Staking SDK is a JavaScript/TypeScript library that provides a typed client for interacting with the P2P.ORG Staking API. Currently, the SDK provides functionality for Solana staking workflows.
The SDK is designed for Node.js (version 20 or higher) and is distributed as an ESM-only package.
The library provides:
- Wrappers to the P2P.ORG Staking API endpoints.
- Methods for decoding and verifying transactions.
- Testing-only helpers for signing transactions. Note that for production environments, it is recommended to sign transactions via wallet software or hardware wallets or a dedicated signer service.
To start using P2P.ORGStaking SDK, initialize a StakingApiClient and use the object corresponding to your network:
client.solana— Solana.
More networks will be added in future versions.
What's next?
Updated about 19 hours ago