LazorKit LogoLazorKit
React SDK

Type Definitions

TypeScript definitions for LazorKit React SDK.

Type Definitions

Core Types

SignAndSendTransactionPayload

Payload structure for transaction signing.

interface SignAndSendTransactionPayload {
  instructions: TransactionInstruction[];
  transactionOptions?: {
    feeToken?: string;
    addressLookupTableAccounts?: AddressLookupTableAccount[];
    computeUnitLimit?: number;
    clusterSimulation?: 'devnet' | 'mainnet';
  };
}

WalletInfo

Connected wallet information.

interface WalletInfo {
  credentialId: string;           // Unique WebAuthn credential ID (Base64). Authentication.
  passkeyPubkey: number[];        // Raw public key bytes of the passkey.
  smartWallet: string;            // **YOUR SOLANA WALLET ADDRESS** (Base58). Use this for funds.
  walletDevice: string;           // Internal PDA for device management.
  platform: string;               // Platform info (e.g. 'web', 'macIntel').
  accountName?: string;           // The user's account name (if available).
}