LazorKit LogoLazorKit
SDK (web3.js v1)

Overview

LazorKit SDK for @solana/web3.js v1 — direct contract interaction via LazorKitClient.

SDK — web3.js v1

@lazorkit/sdk-legacy is the TypeScript SDK for direct LazorKit contract interaction. It uses @solana/web3.js v1 and provides LazorKitClient — a typed API for all on-chain operations.

Use this SDK when you need low-level contract access: building transactions manually, integrating with existing web3.js v1 infrastructure, or working outside of React.

For React and React Native apps, see the React SDK and React Native SDK.


Installation

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

What It Covers

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

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);