Skip to main content
Version: current (0.10)

Wallet Information

Links a connected wallet to the visitor's profile. Call it right after someone connects a wallet, and their on-chain activity is measured alongside the campaigns that brought them in. Lucia supports EVM and Solana wallets.

LuciaSDK.sendWalletInfo(
walletAddress: string,
optionsOrChainId?: WalletInfoOptions | number | string,
walletName?: string,
): Promise<void>

EVM example (MetaMask, Coinbase Wallet)

// address, chain ID, wallet name
LuciaSDK.sendWalletInfo(address, 1, 'MetaMask');

Solana example (Phantom)

LuciaSDK.sendWalletInfo(publicKey.toString(), { provider: 'Phantom' });

For full connect-and-send examples per wallet, see Connecting Wallets.

Already using the SDK?

These examples assume the SDK is installed and initialized. New to it? Start with the Quickstart — the SDK API Reference covers every install option.