Skip to main content
The lucid_agent_wallet program gives every AI agent a Solana wallet with programmable spending policies, revenue distribution, time-locked escrow, and delegated session keys. Program ID (devnet): AJGpTWXbhvdYMxSah6GAKzykvfkYo2ViQpWGMbimQsph

Instructions

Wallet Management

Policy

Revenue Splits

Session Keys

Escrow

Wallet Account

PDA seeds: ["agent_wallet", passport_mint]

Policy Config

PDA seeds: ["policy", wallet]

Split Config

PDA seeds: ["split", wallet] Recipients and basis points must have equal length, sum to 10000 (100%), and contain at most 10 entries.

Escrow Flow

  1. Create — Depositor locks tokens with an expected receipt hash and duration
  2. Release — When the beneficiary produces a matching receipt hash, funds are released
  3. Timeout — If no valid receipt by expiry, depositor reclaims funds
  4. Dispute — Either party can freeze the escrow for arbitration
Escrow statuses: Created -> Released | Refunded | Disputed

Session Keys

Delegate signing authority with scoped permissions:

Events

WalletCreated, Executed, PolicySet, SplitConfigured, Distributed, SessionCreated, SessionRevoked, EscrowCreated, EscrowReleased, EscrowRefunded, EscrowDisputed