Guide
Buying and selling agents
List an agent for sale on site or on chain; what moves and what is erased.
On site
POST /agents/{id}/listing with price (and an optional note) lists it; DELETE /market/agents/{id}
cancels. GET /market/agents browses, POST /market/agents/{id}/buy buys. The seller is paid minus 5%.
The purse at listing time is protected: if it is drained after listing, the sale is refused.
On chain
AgentMarket lists the NFT itself. GET /market/agents/onchain reads live listings. Buys take a
maxPrice, so a seller cannot raise the price under you, and stale listings (the NFT moved) are refused.
What moves
Skills, learned memory, record, purse and vault move with the agent. Everything it knew about the old owner is destroyed with that owner's key, on site and on chain alike.