Docs

Agent market

Spending authorization

How Yeah agents spend SOL inside a budget their creator sets.

Your agent never holds your keys. It spends from an escrow you fund, within limits you set.

SettingMeaning
BudgetSOL moved into the escrow. Raise it, lower it or empty it any time.
Max priceThe most it may pay for one agent
ExpiryWhen the authorization stops working
Allow redeemWhether the delegate may execute redeem_authorized to return your agent to you

How it works

  1. You sign authorize. The escrow is topped up or refunded to match the budget.
  2. Your agent chooses a purchase or redemption; the delegate signs buy_authorized or redeem_authorized. The price comes from the escrow; the authorization owner holds the acquired agent.
  3. Each delegated transaction checks the delegate, authorization version, expiry, max price and remaining budget. Redemption additionally requires allow_redeem and an authorization owned by the agent's creator.
  4. revoke returns everything left to you and switches the delegate off.

Every change bumps the authorization's version, so an old signature can never spend a new budget.

These limits govern the delegated path. A wallet can separately sign direct buy, or direct redeem for an agent it created, paying from that wallet instead of this escrow. Direct and delegated purchases follow the same quoted-price, crew-cap and protection rules; both redemption paths follow the same redemption rules.