@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.js
Quick start (zero custody — sign locally)
import { SolenticClient } from '@solentic/sdk';
import { Transaction, Keypair } from '@solana/web3.js';
const solentic = new SolenticClient();
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/verify
buildVerifiedStake(wallet, amountSol) — build + verify in one call
All transaction builders return unsigned base64 transactions. Blueprint never sees your private key.
MIT licensed.