@solentic/sdk
v1.0.0
Published
Typed TypeScript client for Solentic — agent-native Solana staking with the Blueprint validator. Build native stake/unstake/withdraw transactions, verify them client-side before signing, and submit. Zero custody.
Maintainers
Readme
@solentic/sdk
Typed TypeScript client for Solentic — agent-native Solana staking with the Blueprint validator. One import replaces hand-rolled fetch calls, and the built-in client-side verifier means you never sign a tampered transaction.
Install
npm install @solentic/sdk @solana/web3.jsQuick start (zero custody — sign locally)
import { SolenticClient } from '@solentic/sdk';
import { Transaction, Keypair } from '@solana/web3.js';
const solentic = new SolenticClient();
// Build AND verify client-side before signing — throws if the tx is not a clean
// delegation to Blueprint with your wallet as both authorities.
const { tx } = await solentic.buildVerifiedStake(wallet.publicKey.toBase58(), 10);
const transaction = Transaction.from(Buffer.from(tx.transaction, 'base64'));
transaction.partialSign(wallet);
const { signature } = await solentic.submitTransaction(
transaction.serialize().toString('base64'),
) as { signature: string };API
getValidator()getApy()getPerformance()getInfrastructure()getEpoch()checkBalance(wallet)getStakeAccounts(wallet)checkWithdrawReady(wallet)getStakingSummary(wallet)simulateStake(amountSol, durationDays?)createStakeTransaction(wallet, amountSol)createUnstakeTransaction(wallet, stakeAccount)createWithdrawTransaction(wallet, stakeAccount, amountSol?)createDonateTransaction(wallet, amountSol)submitTransaction(signedBase64)verifyStake(txBase64, wallet)— re-exported@solentic/verifybuildVerifiedStake(wallet, amountSol)— build + verify in one call
All transaction builders return unsigned base64 transactions. Blueprint never sees your private key.
MIT licensed.
