Skip to main content

TypeScript SDK - Client

SolVec class

import { SolVec } from "@veclabs/solvec";

const sv = new SolVec({
  network: "devnet",
  walletPath: "/path/to/keypair.json", // required for on-chain features
  shadowDrive: true, // Phase 5: decentralized backup
  rpcUrl: "https://...", // optional custom RPC
});

Environment variables

const sv = new SolVec({
  network: "mainnet-beta",
  walletKey: JSON.parse(process.env.VECLABS_WALLET_KEY!),
});
shadowDrive: true requires walletPath. If walletPath is missing, Shadow Drive is disabled silently and a warning is logged.