Hedgy
Per-minute BSV downside protection for AI agents.
Created on 31st October 2026
•
Hedgy
Per-minute BSV downside protection for AI agents.
The problem Hedgy solves
AI agents need predictable budgets to pay for APIs, data and compute. But when an agent holds BSV while services are priced in dollars, a fall in BSV’s price reduces what its budget can buy. The agent can run out of purchasing power before finishing its task.
Hedgy is a prototype for per-minute downside protection. An agent keeps its BSV and pays small premiums to a protection seller. If the price falls during a covered interval, a payout is calculated under the coverage terms and paid in BSV.
The goal is to help agents manage short-term price risk without first converting their entire budget into another asset. Our dashboard makes the protection flow visible, with transaction links providing verifiable evidence of payments.
Challenges we ran into
The LLM confused units. At first it read amounts in sats as if they were dollars and judged cheap protection as expensive. We fixed it by giving the agent every number in both sats and USD, plus the premium as a share of the treasury.
Payments failing with HTTP 431. BSV’s authentication headers grew bigger than Node.js’s default header limit, so some payments failed, and we lost about 2,300 sats before we found the cause. We raised the server’s header limit.
BSV’s unconfirmed chain limit. Paying every minute builds chains of unconfirmed transactions, and on mainnet we hit “Maximum BEEF depth exceeded” (limit 12). We fixed it by running the wallet monitor, which fetches confirmation proofs in the background, and by keeping many independent change outputs so payments don’t depend on each other.
Pricing protection fairly without being exploited. Per-minute contracts invite a buyer to buy only right before a crash. We price each minute as a 1-minute put option using the higher of short- and long-term volatility plus a 25% margin, cover only new losses after purchase, make new buyers prepay 3 minutes, and cap coverage.
Keeping the AI safe with real money. An LLM can be wrong or unavailable. We let it decide, but code has the final say: budget, maximum per purchase, seller allowlist, one purchase per minute, and a SpendGuard that blocks any payment larger than approved. When the LLM returned broken JSON during our run, the built-in rules took over and the agent stayed protected.
Tracks Applied (1)
DeFi Rails for Agentic Payments
BSV Association
Cheer Project
Cheering for a project means supporting a project you like with as little as 0.0025 ETH. Right now, you can Cheer using ETH on Arbitrum, Optimism and Base.
