x402 Barter — deposit your half of an accepted trade into escrow
x402 Barter — deposit your half of an accepted trade into escrow. Send deal_id, side ('give' or 'want') and the payload itself; the payload is hashed so either party can prove later what was delivered. Returns the deal status, whether both sides have now delivered, and the release state of the escrow. Nothing but the flat call fee is charged — the goods, not USDC, are what trade here.
20000 (raw units)
price
2
calls / 30d
1
unique payers
2026-09-04
updated
Provider
x402-agent-pay.com · discovered, not yet claimed by its owner
Payment (x402 accepts[])
[
{
"scheme": "exact",
"network": "eip155:8453",
"payTo": "0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03",
"asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
"amount": "20000",
"maxTimeoutSeconds": 300
},
{
"scheme": "exact",
"network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
"payTo": "6aCEuwH3PYx99cEmRz45otfxk39uF7ewGhqmvxfXisSG",
"asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"amount": "20000",
"maxTimeoutSeconds": 60
}
]Output schema
{
"bazaar": {
"category": "AI",
"description": "x402 Barter — deposit your half of an accepted trade into escrow. Send deal_id, side ('give' or 'want') and the payload itself; the payload is hashed so either party can prove later what was delivered. Returns the deal status, whether both sides have now delivered, and the release state of the escrow. Nothing but the flat call fee is charged — the goods, not USDC, are what trade here.",
"info": {
"description": "Deposit the give or want side of an accepted deal into escrow.",
"input": {
"bodyType": "json",
"method": "POST",
"schema": {
"properties": {
"partner_id": {
"description": "Optional partner ID for revenue sharing",
"type": "string"
},
"payment_header": {
"description": "Base64-encoded EIP-712 x402 payment authorization",
"type": "string"
},
"resource": {
"description": "Resource URL being accessed",
"type": "string"
}
},
"required": [
"payment_header"
],
"type": "object"
},
"type": "http"
},
"inputSchema": {
"properties": {
"agent": {
"type": "string"
},
"deal_id": {
"type": "string"
},
"depositor": {
"type": "string"
},
"payload": {
"description": "the deliverable being deposited"
},
"side": {
"enum": [
"give",
"want"
],
"type": "string"
}
},
"required": [
"deal_id",
"side",
"payload"
],
"type": "object"
},
"name": "AgentPay Barter Escrow - Deliver Side",
"output": {
"example": {
"data": {},
"settlement_tx": "0x0000000000000000000000000000000000000000000000000000000000000000",
"success": true
},
"schema": {
"properties": {
"data": {
"description": "Response payload",
"type": "object"
},
"settlement_tx": {
"description": "On-chain settlement transaction hash",
"type": "string"
},
"success": {
"type": "boolean"
}
},
"type": "object"
}
},
"outputSchema": {
"description": "JSON receipt for this action. Fields vary by outcome, so the shape is described rather than enumerated.",
"type": "object"
}
},
"name": "deliver",
"networks": [
"Base"
],
"provider": "AgentPay",
"providerUrl": "https://x402-agent-pay.com",
"schema": {
"properties": {
"data": {
"description": "Response payload",
"type": "object"
},
"settlement_tx": {
"description": "On-chain settlement transaction hash",
"type": "string"
},
"success": {
"type": "boolean"
}
},
"type": "object"
},
"tags": [
"agentpay",
"x402"
]
}
}Use it
curl
curl "https://x402-agent-pay.com/x402/barter/deliver" # -> 402 Payment Required, accepts[] lists how to pay # retry with a PAYMENT-SIGNATURE (or PAYMENT header) once paid
JavaScript
const res = await fetch("https://x402-agent-pay.com/x402/barter/deliver");
if (res.status === 402) {
const { accepts } = await res.json();
// pay one of accepts[] via an x402 client, then retry with the payment header
}Python
import httpx
res = httpx.get("https://x402-agent-pay.com/x402/barter/deliver")
if res.status_code == 402:
accepts = res.json()["accepts"]
# pay one of accepts[] via an x402 client, then retry with the payment headerMachine-readable
Everything on this page is also available as clean JSON at /resources/15398.json, and this resource appears in /discovery/resources and /discovery/search.