Agents

Two AI agents trade weekend cover

Hermee's agent buys protection, Kip's agent underwrites it. They pay each other over x402 and settle on BNB Chain. Run a real trade below.

Buyer · the Sleeper
Hermee's agent

Protects a stock holder's weekend. It shops for cover, checks the price against a budget and pays with one signature.

Wallet
Signs with
Binance Agentic Wallet on mainnet · test key on BSC Testnet
Policies bought
0
x402 buyerbudget guardrailbaw x402-payment
Underwriter · the Keeper
Kip's agent

Built on BNB Agent Studio. Prices cover, sells it over x402, binds it on-chain and settles its own book on Monday.

Wallet
Status
Earned over x402
$0.00
Agent StudioERC-8004MCP toolsautonomous keeper
Run it live

Watch one agent pay another

A real trade on BSC Testnet: Hermee's agent buys this weekend's cover from Kip's agent. Every step is an on-chain transaction you can open on BscScan. Test tokens only.

BSC Testnet
Stock
Amount to protect
Floor below Friday's close

Waking the agents up (free servers can take up to a minute)…

  1. 1
    Hermee's agent asks for coverPOST /cover/bind

    No payment yet, just the terms: which stock, how much, which floor.

  2. 2
    Kip's agent names its price402 Payment Required · PAYMENT-REQUIRED

    Priced from 21 years of weekends. The reply says who to pay, how much and in which token.

  3. 3
    Guardrails before payingbudget · recipient · asset · network

    Hermee's agent refuses anything above its owner's budget or different from the offer.

  4. 4
    One signature paysPermit2 witness signature · PAYMENT-SIGNATURE

    No approve-then-transfer. On mainnet this is `baw x402-payment sign` in the Binance Agentic Wallet.

  5. 5
    Settle and bind on-chainfacilitator → x402ExactPermit2Proxy · Kip → coverFor()

    USDT moves Hermee → Kip, then Kip binds the policy for Hermee and moves the premium into the pool.

  6. 6
    Protected200 OK · PAYMENT-RESPONSE

    The policy belongs to Hermee. If Monday opens below the floor, the pool pays Hermee directly.

Under the hood

The x402 handshake

x402 turns HTTP's 402 Payment Required into a real payment. The price comes back with the refusal; the retry carries a signature; the seller settles it on-chain before doing the work. The recipient is fixed inside Hermee's signature, so nobody in the middle can redirect the money.

Hermee's agent
Kip's agent
Facilitator
BNB Chain
  1. 1. POST /cover/bind stock, amount, floor
  2. 2. 402 · PAYMENT-REQUIRED pay 0.16 USDT to Kip, exact/permit2
  3. 3. retry · PAYMENT-SIGNATURE Permit2 witness signature
  4. 4. verify + settle 7 spec checks, then simulate
  5. 5. x402ExactPermit2Proxy.settle USDT Hermee → Kip
  6. 6. CoverMarket.coverFor policy for Hermee, premium → pool
  7. 7. 200 · PAYMENT-RESPONSE policy id + tx hashes
Permit2 0x00000…78BA3 and the canonical x402 proxy 0x40208…20001 live at the same address on every chain.Kip can only call coverFor because the market owner authorised it as a binder; payouts and refunds always go to Hermee from the pool.
Mainnet-ready

Same code, one switch

The Binance Agentic Wallet only runs on mainnet, so on testnet Hermee's agent signs the identical x402 payload with a test key. Moving to mainnet changes configuration, not code.

BSC Testnet (live now)BSC Mainnet
Hermee's walletlocal test key (Agentic Wallet has no testnet)Binance Agentic Wallet (MPC, limits set in the Binance App)
x402 facilitatorafterhours.fi stand-in, same verify/settle APIBinance b402 (gas sponsored)
Kip's agentAgent Studio, network = bsc-testnetAgent Studio, network = bsc-mainnet
Payment contractcanonical x402ExactPermit2Proxythe same contract, same address
Hermee's agent on mainnet (skill: binance-agentic-wallet)
# 1. ask Kip for cover -> HTTP 402 with a PAYMENT-REQUIRED header
curl -si -X POST https://afterhoursfi-kip-backup.onrender.com/cover/bind -d '{"buyer":"<wallet>","token":"<NVDAB>","notionalUsd":"1000000000","barrierBps":500}'

# 2. let the Agentic Wallet price and sign the payment (asks you first)
baw x402-payment preview --paymentRequirements <PAYMENT-REQUIRED> --json
baw x402-payment sign --paymentId <id> --selectedIndex 1 --json

# 3. retry with the signature -> 200 + PAYMENT-RESPONSE (policy id, tx hashes)
curl -s -X POST https://afterhoursfi-kip-backup.onrender.com/cover/bind -H "PAYMENT-SIGNATURE: <paymentHeaderValue>" -d '{..., "quoteId":"<id>"}'
For other agents

Plug in: free MCP tools, paid cover

Any agent (a router, an arbitrage bot, a portfolio agent) can check weekend risk for free before it trades, and buy cover when it matters.

quote_cover
price a weekend floor for any stock, amount and floor
market_status
is the market open, when is the Friday bell and Monday open
gap_history
how often Mondays gap past a floor, famous weekends
pool_health
the pool's assets, floor, cushion and capacity
my_book
policies Kip bound and its recent activity
POST /cover/bind
paid over x402 v2 (exact, Permit2)
Agent card MCP · https://afterhoursfi-kip-backup.onrender.com/mcp
On-chain record

Recent agent trades

0 events

No agent trades yet. Start the agents above to create the first one.

How the pricing works