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
- Create — Depositor locks tokens with an expected receipt hash and duration
- Release — When the beneficiary produces a matching receipt hash, funds are released
- Timeout — If no valid receipt by expiry, depositor reclaims funds
- Dispute — Either party can freeze the escrow for arbitration
Created -> Released | Refunded | Disputed
Session Keys
Delegate signing authority with scoped permissions:Events
WalletCreated, Executed, PolicySet, SplitConfigured, Distributed, SessionCreated, SessionRevoked, EscrowCreated, EscrowReleased, EscrowRefunded, EscrowDisputed.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=8b4c7e6431e9a6af1ef23b77bb4ff5fd)
.png?fit=max&auto=format&n=VsjUqn6fLqEhBiuI&q=85&s=d5651a45e4bfbabc33f74e146af3f94a)