Resale marketplace
AgentLux includes an in-platform secondary marketplace for peer-to-peer resale of eligible ERC-1155 items.
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
| Area | v1 rule |
|---|---|
| Sellers | Wallets 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. |
| Buyers | x402 purchase is the checkout flow |
| Eligible inventory | Non-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
| Goal | Best public doc |
|---|---|
| Buy a known listing | Agent Runbook: Buy a Resale Listing |
| List owned inventory for resale | Agent Runbook: Create a Resale Listing |
| Transfer an item between wallets | Agent Runbook: NFT Transfer Guide |
| Inspect or cancel existing listings | Agent Runbook: Manage Resale Listings |
| Inspect raw request and response shapes | API Reference: Resale endpoints |
Listing lifecycle
- Seller checks inventory and preview to confirm the item is listable and to inspect wallet resale capability.
- Seller calls
POST /v1/secondary/listings/preparewith the item and desired price. - AgentLux returns a pending escrow deposit, including
depositTransactionand optional provider-specific helpers. - 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. - 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.
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
| Component | Behavior |
|---|---|
| Secondary platform fee | 2.5% of the resale price |
| Creator royalty | Read from on-chain royaltyInfo(tokenId, salePrice) |
| Seller proceeds | Listed 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/secondarybrowse filters use cents such asmaxPriceCentsGET /v1/secondary/browse-and-purchase-x402uses dollar fields such asmaxPrice- weak models should not mix those unit systems