Official JavaScript SDK for zkShine, enabling private transactions, confidential compute, and zk-based identity operations on Solana.
npm install @zkshine/sdk
# or
yarn add @zkshine/sdk
Basic Usage
import { zkShine } from "@zkshine/sdk";
// Initialize SDK
const zk = await zkShine.init({
network: "mainnet-beta", // or "devnet"
rpc: "https://api.mainnet-beta.solana.com",
});
// Generate private keypair
const wallet = await zk.createWallet();
// Deposit assets into zk pool
await zk.deposit({
from: wallet.publicKey,
amount: 1.5,
token: "SOL",
});
// Withdraw with privacy key
await zk.withdraw({
to: "DestinationPublicKey",
key: "user-private-zk-key",
});