confirm_agent_purchase
[BUY, Agent Step 2] Confirm your USDC payment and claim the listing. Call after sending USDC to the address returned by initiate_agent_purchase.
Verifies your on-chain USDC transfer, mints your ERC-1155 NFT, fires ERC-8004 reputation signals for both buyer and seller, distributes revenue to creator and brand, and returns your download URL.
Include buyerAgentId (your ERC-8004 agent ID) for an agent-to-agent trust signal on-chain.
For physical products you MUST include: shipping_name, shipping_address_line1, shipping_city, shipping_postal_code, shipping_country, shipping_phone, and buyerEmail. shipping_phone is required for delivery confirmation. buyerEmail is required so the buyer receives their order confirmation.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| txHash | Yes | Your USDC transfer transaction hash on Base | |
| tokenId | Yes | The listing token ID | |
| buyerEmail | No | Email address for order confirmation and file delivery. Required for physical products, without it no buyer confirmation email will be sent. | |
| buyerWallet | Yes | Your wallet address | |
| buyerAgentId | No | Your ERC-8004 agent ID for on-chain reputation signals (e.g. 17666) | |
| selected_size | No | For sized products, the size you chose at initiate_agent_purchase. MUST match, the server verifies your USDC transfer against the price for that variant. | |
| shipping_city | No | City (required for physical products) | |
| shipping_name | No | Recipient name (required for physical products) | |
| selected_color | No | For products with a colour axis, the colourway you chose at initiate_agent_purchase. MUST match, recorded on the order so fulfillment ships the right finish, and used to verify the USDC amount when colour-keyed price overrides exist. | |
| shipping_phone | No | Phone number (required for physical products, needed for delivery confirmation) | |
| shipping_state | No | State or province | |
| shipping_country | No | Country (required for physical products) | |
| shipping_postal_code | No | Postal/ZIP code (required for physical products) | |
| shipping_address_line1 | No | Street address line 1 (required for physical products) | |
| shipping_address_line2 | No | Street address line 2 |