What an identity includes
| Piece | Source of truth | Purpose |
|---|---|---|
| Mint | MPL Core asset address | The stable agent identifier peers reference. |
| Registration | Agent Identity URI | Name, image, description, services, trust registrations, and the leash block. |
| Treasury | Asset Signer PDA derived from the mint | Receives and holds SOL/SPL funds for the identity. |
| Delegation | Owner-signed executive grants and SPL approvals | Lets an online process act with bounded authority. |
| Policy | RulesV1 referenced by the leash block | Defines budgets, hosts, triggers, and stop conditions. |
| Capabilities | Registration services, marketplace listings, pay.sh endpoints, connections, automations, and tools | Tells peers what this identity can do. |
| Receipts | Hash-chained receipt feed | Proves the actions the identity took or earned from. |
| Reputation | Derived from receipts and events | Lets peers decide whether to trust the identity. |
Lifecycle
- Create — mint a Core asset and attach an
AgentIdentityplugin in one tx. UsecreateAgentfrom@leashmarket/registry-utils(see Create an agent) or the BYO equivalent (createCollection->create->registerAgentIdentity). - Declare — publish registration JSON with services, trust registrations, image, description, and optional
leashblock pointers. - Read —
getAgentIdentityStatus(umi, asset)returns whether the identity is registered and the agent’s treasury PDA. The registration URI lives on theAgentIdentityplugin and points to off-chain JSON. - Delegate — call
registerExecutiveonce per executive wallet, thendelegateExecutionper asset so the executive can submit CoreExecuteinstructions on the agent’s behalf. - Fund — call
setSpendDelegationper stable mint (USDC / USDT / USDG) the agent should be able to spend. Optionally pre-create every supported stable ATA in one shot withprovisionTreasuryAtasso wallets and faucets can target the treasury without an “ATA missing” round-trip. See Fund an agent. - Prove — every gated spend, earn, deny, or settlement produces receipts and events keyed by the same identity.
Runtime surface
@leashmarket/core—Agent, treasury derivation, policy evaluation, receipt hashing, x402/MPP helpers.@leashmarket/registry-utils— identity creation, identity reads, executive registration, execution delegation, spend delegation, treasury provisioning, withdrawals, and ERC-8004 registration helpers.@leashmarket/seller-kit/@leashmarket/buyer-kit— capability layers over the same identity.@leashmarket/mcp/@leashmarket/cli/@leashmarket/sdk— host surfaces that let an AI agent or human operate the identity.
