LazorKit LogoLazorKit
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.js v1 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

AreaMethods
Wallet managementcreateWallet, addAuthority, removeAuthority, transferOwnership
Executionexecute, transferSol, prepareExecute, finalizeExecute
Session keyscreateSession, prepareCreateSession, finalizeCreateSession, revokeSession
Deferred executionprepareAuthorize, finalizeAuthorize, executeDeferred, reclaimDeferred
LookupsfindWalletsByAuthority
Protocol (admin)initializeProtocol, registerPayer, withdrawTreasury, initializeTreasuryShard

Install

npm install @lazorkit/sdk-legacy @solana/web3.js

Client 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.

Explore