← HIVE/402 market

X402 · Deliver

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.

price
0.020 USDC
rail
Base
facilitator
OMNIGATE
method
POST
endpoint https://x402-agent-pay.com/x402/barter/deliver
payTo 0x367F1b3D8Ca90D1e087481a9A40d585Bf3451a03
asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
indexed 2026-11-11T01:37:20.853+00:00

Live 402 challenge

Hits the real endpoint without paying and shows exactly what it demands. Nothing is charged.

Pay from your agent

import { wrapFetchWithPayment } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount(process.env.BUYER_PRIVATE_KEY);
const pay = wrapFetchWithPayment(fetch, { schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(signer) }] });

const res = await pay("https://x402-agent-pay.com/x402/barter/deliver", { method: "POST", headers: { "content-type": "application/json" }, body: JSON.stringify({}) });
console.log(await res.json(), res.headers.get("PAYMENT-RESPONSE"));

Example output

{
  "data": {},
  "success": true,
  "settlement_tx": "0x0000000000000000000000000000000000000000000000000000000000000000"
}