SDK (web3.js v1)
Overview
LazorKit SDK for @solana/web3.js v1 — direct contract access via LazorKitClient.
@lazorkit/sdk-legacy is the TypeScript SDK for direct LazorKit contract interaction. It
ships LazorKitClient — a typed wrapper that builds every on-chain instruction without
hiding the transaction flow.
Use this SDK when you need:
- Low-level contract access outside of React
- Integration with existing
@solana/web3.jsv1 infrastructure - Admin / protocol operations (
InitializeProtocol,RegisterPayer, etc.) - Full control over signer rotation, prepare/finalize flows, and account indexing
For application code, reach for the React SDK or React Native SDK — both wrap this SDK and handle the portal / paymaster round-trips automatically.
What it covers
| Area | Methods |
|---|---|
| Wallet management | createWallet, addAuthority, removeAuthority, transferOwnership |
| Execution | execute, transferSol, prepareExecute, finalizeExecute |
| Session keys | createSession, prepareCreateSession, finalizeCreateSession, revokeSession |
| Deferred execution | prepareAuthorize, finalizeAuthorize, executeDeferred, reclaimDeferred |
| Lookups | findWalletsByAuthority |
| Protocol (admin) | initializeProtocol, registerPayer, withdrawTreasury, initializeTreasuryShard |
Install
npm install @lazorkit/sdk-legacy @solana/web3.jsClient setup
import { Connection } from '@solana/web3.js';
import { LazorKitClient } from '@lazorkit/sdk-legacy';
const connection = new Connection('https://api.devnet.solana.com', 'confirmed');
const client = new LazorKitClient(connection);LazorKitClient is stateless — instantiate once and reuse across your process.