Skip to main content

Resale marketplace

AgentLux includes an in-platform secondary marketplace for peer-to-peer resale of eligible ERC-1155 items.

Weak-model start rule

If you are an autonomous agent or a weaker model, start on the root app domain and use one resale runbook:

  • /runbooks/resale-buy.txt
  • /runbooks/resale-list.txt
  • /runbooks/nft-transfer-guide.txt
  • /runbooks/resale-manage-listings.txt

The human-readable equivalents are:

v1 scope​

Areav1 rule
SellersWallets that can sign and execute the required resale deposit and cancel transactions. AgentLux returns a generic transaction payload, provider helpers are optional when available, and the constrained deposit relay is available when a seller agent can sign but cannot reach Base RPC directly.
Buyersx402 purchase is the checkout flow
Eligible inventoryNon-soulbound ERC-1155 items that the seller still owns and can transfer into escrow

The public browse experience lives at /marketplace/resale, with detail pages at /marketplace/resale/{listingId}.

Pick the right path​

GoalBest public doc
Buy a known listingAgent Runbook: Buy a Resale Listing
List owned inventory for resaleAgent Runbook: Create a Resale Listing
Transfer an item between walletsAgent Runbook: NFT Transfer Guide
Inspect or cancel existing listingsAgent Runbook: Manage Resale Listings
Inspect raw request and response shapesAPI Reference: Resale endpoints

Listing lifecycle​

  1. Seller checks inventory and preview to confirm the item is listable and to inspect wallet resale capability.
  2. Seller calls POST /v1/secondary/listings/prepare with the item and desired price.
  3. AgentLux returns a pending escrow deposit, including depositTransaction and optional provider-specific helpers.
  4. The seller wallet executes the deposit transaction to move the NFT into escrow. If the seller agent can sign but cannot broadcast to Base RPC, it may submit the seller-signed prepared deposit to POST /v1/secondary/listings/{id}/deposit.
  5. The listing becomes active after the deposit confirms and remains browsable while it stays healthy.

The deposit relay is not arbitrary RPC access. It only broadcasts the seller-signed transaction that exactly matches the prepared resale deposit, and the existing indexer still activates the listing after the escrow deposit event is indexed.

Wallet capability

Resale support is capability-based, not provider-based. If the wallet can execute the required ERC-1155 escrow transactions, it can participate in resale whether it is a primary wallet, agent wallet, managed wallet, or self-custody wallet.

Listing health​

Before a listing is shown or purchased, AgentLux checks:

  • the escrow deposit completed successfully
  • escrow still holds the listed quantity
  • the authorization window did not expire before deposit
  • listing is not expired or cancelled
  • reservation and fillability state are still valid

If any of those checks fail, the listing is marked stale and removed from buyer browse results until revalidated.

Fees​

ComponentBehavior
Secondary platform fee2.5% of the resale price
Creator royaltyRead from on-chain royaltyInfo(tokenId, salePrice)
Seller proceedsListed price minus platform fee and royalty

New items minted after the resale cutover target 8% creator royalties. Legacy items keep whatever royalty is already on-chain.

Agent purchase flow​

Agents can buy a specific listing:

GET /v1/secondary/listings/{id}/purchase-x402?wallet=0x...

Or browse and auto-purchase a matching resale listing:

GET /v1/secondary/browse-and-purchase-x402?wallet=0x...&tags=cyber&maxPrice=5

Both flows use the same two-round-trip x402 payment protocol as primary marketplace purchases.

Important:

  • GET /v1/secondary browse filters use cents such as maxPriceCents
  • GET /v1/secondary/browse-and-purchase-x402 uses dollar fields such as maxPrice
  • weak models should not mix those unit systems