Collateral health. Agents can only borrow while the trove stays above your floor. Mezo liquidates at 110%; the default floor is 200%.
- Collateral
- 0.07 BTC
- Debt
- 2,007.81 MUSD
- Draws stop below
- $57,366 / BTC
BanQor turns a Mezo trove into a credit line for AI agents. Your BTC stays locked as collateral. Agents borrow MUSD against it just in time, inside caps they can't break, and pay any x402 API.
Testnet only. Unaudited. Contracts verified on Sourcify.
The problem
AI agents now pay for APIs per request over x402. Someone has to fund them. Today a BTC holder has three bad options.
The line
DrawTooLargeDailyCapExceededPausedNotAgentreplaying on-chain events
With the demo policy, until the owner presses pause. Then every draw reverts.
How it works
For agent developers, explained for everyone
Your AI agent adds the BanQor helper. That's the only new piece it needs.
One import from @banqor/sdk.
The agent gets its own key and is pointed at your vault, the credit line backed by your Bitcoin on Mezo.
Agent key, vault address, network and RPC.
When the agent has less than 0.20 MUSD on hand, it borrows 1 more from your vault by itself. Nobody tops it up.
minFloat and topUp drive automatic draw() calls.
Anything that costs more than 0.10 MUSD is refused before any money moves. Your own on-chain caps still apply on top.
maxPricePerCall, checked before signing. Refusals come back as typed errors.
The agent asks an API for data. If the API wants to be paid, the agent pays it in MUSD and gets the answer. No forms, no cards.
A fetch-compatible function that handles x402 payments.
import { createBanQorFetch } from "@banqor/sdk";const fetchPaid = createBanQorFetch({ agentKey: process.env.AGENT_KEY, vault: "0xcDa3Cb64aEd90C2A77981434d66AD3F3197fC791", network: "eip155:31611", rpcUrl: "https://rpc.test.mezo.org", minFloat: "0.20", // draw below this topUp: "1.00", // MUSD per draw maxPricePerCall: "0.10", // refuse pricier calls});const res = await fetchPaid("https://api.example.com/price");
Proof
152
paid x402 calls settled on-chain through the x402 facilitator
4.03
MUSD paid out in micro-payments of 0.01–0.05
5
automatic draws, one of them borrowed against BTC
0
manual top-ups
Snapshot from the demo vault on Oct 24, 2026. Factory on Sourcify · Vault on Sourcify · Vault on the explorer
Who gains