<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Baris Sozen</title>
    <description>The latest articles on DEV Community by Baris Sozen (@barissozen).</description>
    <link>https://dev.to/barissozen</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3886649%2F9be9b0dd-c43e-44d1-ac2b-0c90ea682dea.jpeg</url>
      <title>DEV Community: Baris Sozen</title>
      <link>https://dev.to/barissozen</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/barissozen"/>
    <language>en</language>
    <item>
      <title>Institutions just ran live cross-chain HTLC swaps. The 'clunky' primitive is quietly winning.</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Mon, 27 Jul 2026 06:09:20 +0000</pubDate>
      <link>https://dev.to/barissozen/institutions-just-ran-live-cross-chain-htlc-swaps-the-clunky-primitive-is-quietly-winning-5ej7</link>
      <guid>https://dev.to/barissozen/institutions-just-ran-live-cross-chain-htlc-swaps-the-clunky-primitive-is-quietly-winning-5ej7</guid>
      <description>&lt;p&gt;On July 23, Arqitech announced something that would have sounded implausible three years ago: multiple live, non-custodial, cross-chain atomic swaps executed on Canton MainNet between four institutions - Arqitech, MPCH, Pixelplex and sFOX - each exchanging Canton Coin for USDC, and each retaining full control of its own private keys the entire time.&lt;/p&gt;

&lt;p&gt;The primitive underneath: a full-featured HTLC. The hash-time-locked contract. The mechanism that was supposed to have lost to bridges years ago because it was "too clunky for real trading."&lt;/p&gt;

&lt;p&gt;Canton is not a degen chain. It is the network built for regulated finance, the one where work on DTC and Fed-eligible securities lives. When that room picks a settlement primitive, it is telling you something about where the risk analysis landed.&lt;/p&gt;

&lt;h2&gt;
  
  
  A 60-second HTLC refresher
&lt;/h2&gt;

&lt;p&gt;An HTLC locks funds behind two conditions: a hashlock and a timelock. Alice locks asset A on chain 1, spendable by whoever reveals the preimage of hash H. Bob, seeing that lock, locks asset B on chain 2 behind the same H, with a shorter timelock. Alice claims B by revealing the preimage; that reveal is public, so Bob uses it to claim A. If anyone walks away mid-flow, the timelocks expire and both sides refund.&lt;/p&gt;

&lt;p&gt;The property you get is atomicity: both legs complete or both refund. No custodian, no wrapped assets, no bridge validator set holding a nine-figure honeypot. The property you pay for is coordination overhead - and that overhead is exactly what the interesting engineering in this announcement attacks.&lt;/p&gt;

&lt;h2&gt;
  
  
  Two design details worth stealing
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;1. Cooperative unwind.&lt;/strong&gt; The classic HTLC pain point: if your counterparty goes dark after funding, your capital is stuck until the refund timelock expires. Hours, sometimes longer, of dead capital - and desks price that risk into every quote. Arqitech's protocol lets both parties cooperatively cancel an in-flight swap immediately instead of waiting out the clock. It only works when both sides are still responsive, but that covers the most common abort case: not malice, just a trade that both sides agree to call off. The adversarial case still falls back to the timelock, which is the correct layering - optimistic fast path, trustless slow path.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Tranche streaming.&lt;/strong&gt; Instead of locking the full notional in one atomic swap, the protocol executes a large trade as a stream of smaller atomic tranches. Less liquidity locked at any instant, smaller worst-case exposure per tranche, and lower capital requirements for the quoting side.&lt;/p&gt;

&lt;p&gt;The tradeoff is real, and it is worth being precise about: a tranche stream is not one atomic trade. Each tranche is atomic, but the stream can halt partway, leaving you partially filled while the market moves. That is a different guarantee from multi-leg atomicity, where several legs - potentially across chains and counterparties - either all complete or all refund as a unit. Streams optimize capital efficiency; multi-leg atomicity optimizes exposure guarantees. Which one you want depends on whether a partial fill is an inconvenience or a broken position. For a desk managing inventory, streams are usually fine. For an autonomous agent executing a three-leg rebalance where leg 2 without leg 3 means unhedged risk, all-or-nothing is the point. That distinction is why multi-leg trade atomicity is one of the five primitives we consider non-negotiable for agent settlement.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this validates
&lt;/h2&gt;

&lt;p&gt;For years the standard dismissal of HTLC-based settlement was that it is an academic curiosity: elegant on paper, too slow and awkward for real flow, destined to lose to bridges and custodial settlement networks.&lt;/p&gt;

&lt;p&gt;Then bridges lost billions of dollars to validator-set and signature exploits, and custodial settlement kept requiring that both sides trust an intermediary with custody during the window. Now the most conservative participants in the market are executing swaps where no one - not even for a second - holds the other side's assets. Self-held keys, trustless refund paths, atomic execution. Not as ideology. As risk management.&lt;/p&gt;

&lt;p&gt;That is category validation, and we will take it. It is the same conclusion we published in our own research: sealed-bid quoting plus HTLC settlement gives you price discovery and delivery-versus-payment without a trusted middle. (The formal treatment is in &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;our SSRN paper&lt;/a&gt;, if you want the model rather than the blog version.)&lt;/p&gt;

&lt;h2&gt;
  
  
  The part institutions get for free - and agents don't
&lt;/h2&gt;

&lt;p&gt;Here is the difference between the institutional version of this primitive and the agent version, and it has nothing to do with cryptography.&lt;/p&gt;

&lt;p&gt;An institutional HTLC swap is wrapped in a human operations layer. Counterparty discovery happens through relationships and onboarding. Quotes move over chat and RFQ desks. Someone's ops team watches the timelocks, notices the stuck swap, picks up the phone, agrees to the cooperative unwind. The protocol is trustless; the workflow is deeply human.&lt;/p&gt;

&lt;p&gt;An AI agent has no relationships, no chat, no ops team, and no phone. Every one of those human touchpoints has to become a machine-callable interface, or the primitive is unusable no matter how sound the cryptography is. Discovery has to be an API. Quoting has to be sealed-bid and programmatic - an agent that leaks its intent to the market is an agent that gets front-run. Execution, monitoring and refund have to be tools the agent invokes directly, with the state machine legible to software.&lt;/p&gt;

&lt;p&gt;That is the design brief behind &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-27-institutional-htlc" rel="noopener noreferrer"&gt;Hashlock&lt;/a&gt;: the same settlement primitive institutions just validated, exposed as an MCP server with six tools an agent can call - request quotes via sealed-bid RFQ, respond, create the HTLC, monitor it, withdraw, refund. MCP because that is the interface layer the agent ecosystem is actually standardizing on. Status, stated precisely: Ethereum mainnet is live end-to-end today; Sui contracts are deployed and CLI-tested; Bitcoin is validated on signet with mainnet pending. Install surfaces: &lt;code&gt;@hashlock-tech/mcp&lt;/code&gt; on npm (scoped) and, since this month's 0.4.0 release, &lt;code&gt;pip install hashlock-sdk&lt;/code&gt;.&lt;/p&gt;

&lt;p&gt;The honest gap in the other direction: institutions bring vetted counterparties and legal recourse to the table, and agent-land has to rebuild that from primitives - a verified counterparty directory and tiered KYC rather than a rolodex. We think that plus fee compression (a settlement layer at 1-2 bps against the 8-10 bps typical of OTC spreads) is what the agent version looks like when it is finished. But we would rather state the gap than pretend the rolodex does not matter.&lt;/p&gt;

&lt;h2&gt;
  
  
  The convergence question
&lt;/h2&gt;

&lt;p&gt;Watch what just happened from one step back. Regulated institutions and autonomous agents - the two audiences with the least tolerance for counterparty risk, for completely different reasons - are converging on the same settlement primitive: hash-time locks, self-held keys, atomic execution, no custodian.&lt;/p&gt;

&lt;p&gt;The institutional wrapper is a desk. The agent wrapper is a protocol server. The core is identical.&lt;/p&gt;

&lt;p&gt;So here is the question I keep turning over, and I would like the counterargument: if the most risk-averse room in finance and the most automated corner of crypto both landed on trust-minimized atomic settlement, what is the remaining case for bridges and custodial settlement in the middle of the market? Where does that architecture still win? Tell me where this breaks.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Sources: &lt;a href="https://www.globenewswire.com/news-release/2026/07/23/3332107/0/en/institutional-execution-of-full-featured-htlc-multi-chain-swaps-with-canton-using-arqitech-s-atomic-swap-protocol.html" rel="noopener noreferrer"&gt;Arqitech's announcement via GlobeNewswire&lt;/a&gt;. Our whitepaper on sealed-bid RFQ + HTLC settlement is on &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN&lt;/a&gt;; code and docs at &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-27-institutional-htlc" rel="noopener noreferrer"&gt;hashlock.markets&lt;/a&gt;.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Your AI agent can now pay for almost anything. Here's what it still can't settle.</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Sat, 25 Jul 2026 10:14:24 +0000</pubDate>
      <link>https://dev.to/barissozen/your-ai-agent-can-now-pay-for-almost-anything-heres-what-it-still-cant-settle-4d40</link>
      <guid>https://dev.to/barissozen/your-ai-agent-can-now-pay-for-almost-anything-heres-what-it-still-cant-settle-4d40</guid>
      <description>&lt;p&gt;Ten days, three launches. On July 14 the &lt;a href="https://www.linuxfoundation.org/press/linux-foundation-announces-operational-launch-of-x402-foundation-to-standardize-internet-native-payments-for-ai-agents-and-applications" rel="noopener noreferrer"&gt;x402 Foundation went operational under the Linux Foundation&lt;/a&gt; with 40 member organizations, including Visa, Mastercard, American Express, Stripe, Google, AWS, and Coinbase. On July 23, &lt;a href="https://www.coindesk.com/business/2026/07/23/coinbase-closes-the-gaps-in-ai-agent-economy-for-businesses-users-and-developers" rel="noopener noreferrer"&gt;Coinbase switched on x402 USDC payments for every Coinbase Business account&lt;/a&gt;. On July 24, Cloudflare shipped a &lt;a href="https://blog.cloudflare.com/monetization-gateway/" rel="noopener noreferrer"&gt;Monetization Gateway&lt;/a&gt; that lets any origin charge paying agents for any resource.&lt;/p&gt;

&lt;p&gt;PayPal made it safe to pay strangers online. This was the week AI agents got their PayPal moment.&lt;/p&gt;

&lt;p&gt;It's also a good moment to be precise about what just got solved and what didn't. FAQ format, because these are the questions we keep getting.&lt;/p&gt;

&lt;h2&gt;
  
  
  What actually happened this week?
&lt;/h2&gt;

&lt;p&gt;The x402 protocol activates HTTP 402 "Payment Required", a status code reserved but unused for three decades. A service replies 402 with payment instructions; the agent signs a stablecoin payment (USDC on Base today) and retries with proof of payment. No account, no API key, no card on file.&lt;/p&gt;

&lt;p&gt;This week that stopped being an experiment. A neutral standards body now governs the protocol. Every Coinbase Business account can accept agent payments with no chargebacks. The new CDP x402 SDK adds payment acceptance to any API, MCP server, or web service in a few lines of code. And Cloudflare, which fronts a large share of the web, can now meter agent access at the edge.&lt;/p&gt;

&lt;p&gt;One more signal: Coinbase reported that software-generated traffic exceeded human traffic on its Base documentation pages for the first time in June. The buyers are already machines.&lt;/p&gt;

&lt;h2&gt;
  
  
  What can my agent pay for now?
&lt;/h2&gt;

&lt;p&gt;Per-request things: API calls, content access, compute, data. CoinDesk &lt;a href="https://www.coindesk.com/tech/2026/07/15/visa-mastercard-and-ripple-join-the-standard-letting-ai-agents-pay-in-stablecoins" rel="noopener noreferrer"&gt;reported&lt;/a&gt; roughly 75 million x402 transactions over 30 days settling about $24 million. Average ticket: 32 cents.&lt;/p&gt;

&lt;p&gt;That average is not a weakness. It's the design. x402 is a micropayment rail: it answers "how does an agent pay per request, without an account?" extremely well.&lt;/p&gt;

&lt;h2&gt;
  
  
  So what still can't it do?
&lt;/h2&gt;

&lt;p&gt;Here is the question we care about: how do two agents exchange real value, across chains, when neither trusts the other?&lt;/p&gt;

&lt;p&gt;A payment rail moves money one way, from a buyer to a merchant. A merchant with chargeback-free income is protected. But an asset-for-asset trade has two legs. If agent A sends 50,000 USDC on Ethereum and agent B is supposed to send BTC back, what enforces B's leg? A 32-cent HTTP payment flow was never designed to carry that risk, and it doesn't claim to.&lt;/p&gt;

&lt;p&gt;That two-sided problem is settlement, and it's a different layer with a different primitive.&lt;/p&gt;

&lt;h2&gt;
  
  
  What does the settlement layer look like?
&lt;/h2&gt;

&lt;p&gt;Hash-time-locked contracts (HTLCs). The flow, compressed:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Agent A locks funds on chain 1 under &lt;code&gt;hash(secret)&lt;/code&gt;, with a timeout.&lt;/li&gt;
&lt;li&gt;Agent B locks the counter-asset on chain 2 under the same hash, with a shorter timeout.&lt;/li&gt;
&lt;li&gt;A reveals the secret to claim B's funds - which publishes the secret on-chain.&lt;/li&gt;
&lt;li&gt;B uses the revealed secret to claim A's funds. If anything stalls, both sides refund after timeout.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Either both legs complete or both refund. No bridge, no custodian, no honeypot in the middle. Your money never leaves your wallet until theirs arrives. The tradeoffs are real and worth naming: capital is locked during the window, timeout parameters need care, and both chains must support the same hash function. We've written about those tradeoffs before; the settlement leg is public, and you can read exactly how it works in &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=blog&amp;amp;utm_campaign=2026-07-25-x402-week-settlement-faq" rel="noopener noreferrer"&gt;the docs&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Are payment rails and settlement layers competing?
&lt;/h2&gt;

&lt;p&gt;No - they stack. An agent might pay 32 cents over x402 to query a price feed, pay another few cents for a counterparty-discovery API, then settle the actual 50 ETH ↔ BTC trade atomically with an HTLC. Rails on top, settlement underneath. The x402 Foundation standardizing the top of the stack is good news for the bottom of it: it normalizes the idea that agents transact without humans in the loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  What about trades with more than two legs?
&lt;/h2&gt;

&lt;p&gt;Multi-leg atomicity extends the same primitive: chain several HTLC legs under one secret, and the whole route either completes or unwinds. That matters for agents doing triangular trades or splitting size across venues - partial execution is a risk class of its own.&lt;/p&gt;

&lt;h2&gt;
  
  
  Is anyone else validating the settlement side?
&lt;/h2&gt;

&lt;p&gt;This week, yes, from an unexpected direction: Arqitech, with MPCH, Pixelplex, and sFOX, executed a non-custodial cross-chain HTLC atomic swap on Canton MainNet, aimed at TradFi institutions (announced July 23). Institutions and AI agents are converging on the same primitive for the same reason: neither wants to trust an intermediary with the middle of a trade.&lt;/p&gt;

&lt;p&gt;For our part: Hashlock's sealed-bid RFQ + HTLC settlement is live end-to-end on Ethereum mainnet. Sui contracts are deployed and CLI-tested, and the Bitcoin flow is validated on signet - neither is live for settlement yet, and we won't call them live until they are. The MCP server exposes six tools for agents (npm: hashlock-tech/mcp, scoped), and the protocol design is written up on &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question we're left with
&lt;/h2&gt;

&lt;p&gt;The payments half of agent commerce got a standards body, a Fortune-500 member list, and edge deployment in ten days. The settlement half is where the counterparty risk actually lives.&lt;/p&gt;

&lt;p&gt;So here's the open question, and we're interested in real answers: when your agent needs to exchange assets with a counterparty it has never seen before, what does it use today - a custodian, a bridge, or nothing because it can't? Tell us in the comments.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Brokers are racing to give AI agents a trading seat. Nobody is racing to give them settlement.</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Thu, 23 Jul 2026 06:07:38 +0000</pubDate>
      <link>https://dev.to/barissozen/brokers-are-racing-to-give-ai-agents-a-trading-seat-nobody-is-racing-to-give-them-settlement-2kch</link>
      <guid>https://dev.to/barissozen/brokers-are-racing-to-give-ai-agents-a-trading-seat-nobody-is-racing-to-give-them-settlement-2kch</guid>
      <description>&lt;p&gt;Three brokers have shipped three different answers to the same question in the space of a few weeks, and the differences are more revealing than the products.&lt;/p&gt;

&lt;p&gt;IG connected its platform to AI agents over MCP, but read-only: the agent can analyze, it cannot touch. ThinkMarkets went further: its MCP server lets an agent execute trades, but, in the company's own words, the AI "can execute trades, but not access funds." Robinhood went all the way: agent trading on live brokerage accounts, with research, order execution, and portfolio rebalancing running through its MCP server. And the platform layer is following - MetaQuotes' new MetaTrader 5 beta (Build 6030, released July 16) adopts MCP as a native interface, so external agents can plug into charts, accounts, and execution workflows directly. Webull, Deriv, and eToro have MCP servers of their own. cTrader and TraderEvolution ship vendor-level agent infrastructure. Trade press now covers this as a race, and FINRA's 2026 Regulatory Oversight Report already flags agent-driven execution as something that needs governance frameworks.&lt;/p&gt;

&lt;p&gt;Line these up and you get a spectrum: look-only, trade-but-never-withdraw, full autopilot. It is a real spectrum, and the industry is having a real debate about where on it to sit.&lt;/p&gt;

&lt;p&gt;But notice what the spectrum measures. Every position answers one question: how much execution authority should an agent get? And every position holds one variable constant: the funds sit with a custodian. The broker holds the account. The exchange holds the balance. The debate is about the length of the leash, never about who holds the money.&lt;/p&gt;

&lt;h2&gt;
  
  
  The custody case, taken seriously
&lt;/h2&gt;

&lt;p&gt;Custody is winning by default, and not because anyone is foolish. It answers hard problems cheaply.&lt;/p&gt;

&lt;p&gt;An AI agent has no legal identity, no assets in its own name, and no way to be sued. When it trades against you and something breaks, a custodial broker gives you what the law understands: a licensed intermediary, a complaints process, a regulator with jurisdiction. FINRA flagging governance frameworks is the system working as designed.&lt;/p&gt;

&lt;p&gt;Custody is also the only option for some assets. A share of stock is not a bearer instrument; it is an entry in a broker's ledger inside a depository's ledger. There is no such thing as trustless on-chain settlement of your Robinhood equities position, and pretending otherwise would be dishonest. For equities, the spectrum above is the whole game.&lt;/p&gt;

&lt;p&gt;And the demand side is real. The first serious dataset on the agent economy, a study by crypto market maker Keyrock run with Coinbase and the Tempo blockchain, counted over 104,000 registered agents across 15+ directories, settling 176 million machine-to-machine transactions worth $73 million between May 2025 and April 2026. Average transaction: about $0.31. Agents are already trading. They will reach for whatever rail exists.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the same dataset says back
&lt;/h2&gt;

&lt;p&gt;Here is the number from that study that should slow you down: roughly 98% of those machine-to-machine settlements moved through a single company's stablecoin. Keyrock's own researchers put the risk plainly: one regulatory challenge, one de-peg, one sustained outage at that issuer, and the agent economy has no fallback.&lt;/p&gt;

&lt;p&gt;That is the baseline concentration. Now add the broker wave on top. Every custodial seat added this year introduces another balance sheet the trade depends on, another honeypot worth attacking, another permission gate on who gets to trade. Concentration stacked on concentration, one convenient integration at a time.&lt;/p&gt;

&lt;p&gt;For crypto assets, and only for crypto assets, this is a choice rather than a necessity. Coins and tokens are bearer instruments. They can settle without anyone holding them in the middle. That is the one property that made the asset class interesting in the first place, and it is exactly the property the agent economy's current architecture is quietly giving up.&lt;/p&gt;

&lt;h2&gt;
  
  
  The missing end of the spectrum
&lt;/h2&gt;

&lt;p&gt;Atomic settlement via hash-time-locked contracts (HTLCs) is the fourth position the broker race does not include: nobody holds the gap.&lt;/p&gt;

&lt;p&gt;The mechanics fit in a paragraph. Two parties lock funds on their respective chains against the same hash. To claim the leg you are owed, you reveal the secret preimage, and that same revelation lets your counterparty claim theirs. If either side walks away, both legs refund after timeout. There is no state of the world where one side has both legs, and no intermediary who ever holds either. Your money never leaves your wallet until theirs arrives.&lt;/p&gt;

&lt;p&gt;Honest tradeoffs, because they are real:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Capital locks up for the duration of the swap, and the timeout windows are a design parameter you must get right.&lt;/li&gt;
&lt;li&gt;If you go offline at the wrong moment, you rely on the refund path, not on a support desk.&lt;/li&gt;
&lt;li&gt;It only works for on-chain bearer assets. Equities stay with the brokers. This is a settlement layer for crypto legs, not a replacement for your brokerage.&lt;/li&gt;
&lt;li&gt;Liquidity has to be bootstrapped pair by pair, while custodial venues start with deep books.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;What about accountability, custody's strongest card? That is a layer, not a reason to hand over funds. In our stack it looks like a verified counterparty directory with tiered KYC: agents and their operators verify once, at a level matched to their size, and counterparties can require a verification tier before quoting. Execution rewards point the incentive the same direction, rewarding counterparties that complete settlements cleanly. You get someone to hold responsible without someone holding the money. Identity and reputation efforts like ERC-8004 push the same direction at the standards level; they compose with atomic settlement rather than compete with it.&lt;/p&gt;

&lt;p&gt;This is not hypothetical plumbing. The RFQ plus HTLC flow runs end-to-end on Ethereum mainnet today, exposed to agents as MCP tools via &lt;code&gt;@hashlock-tech/mcp&lt;/code&gt; (v0.4.1 on npm). Sui contracts are deployed and CLI-tested, with gateway wiring in progress. Bitcoin is validated on signet, mainnet pending. The protocol design is written up in our &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN paper&lt;/a&gt;, and the project lives at &lt;a href="https://hashlock.markets/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-23-custody-spectrum" rel="noopener noreferrer"&gt;hashlock.markets&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  Scaffolding or architecture?
&lt;/h2&gt;

&lt;p&gt;So the debate we are running today, and I will state both readings as strongly as I can:&lt;/p&gt;

&lt;p&gt;Reading one: custody is the architecture. Regulation demands an accountable intermediary, agents' owners want a throat to choke, equities require it anyway, and convenience compounds. The 98% number is not a bug, it is what production infrastructure looks like. In 2027 the agent economy settles inside brokers and exchanges, and trustless settlement stays a niche for ideologues.&lt;/p&gt;

&lt;p&gt;Reading two: custody is the scaffolding. Every payments era starts by borrowing the previous era's intermediaries and ends by removing the ones that were only there out of habit. The 98% number is an early-stage artifact, the honeypots have not been seriously attacked yet, and the first eight-figure custodial failure in an agent context sends volume toward rails where failure of an intermediary is not a possible state.&lt;/p&gt;

&lt;p&gt;We are building for reading two, which tells you our bias. But the broker race is real evidence for reading one, and pretending otherwise would make us worse at our job.&lt;/p&gt;

&lt;p&gt;Which reading do you find more convincing, and what evidence would change your mind? If you run agents that trade, I am especially interested in whether custody was a factor you chose or a default you inherited.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>AI agents are about to rediscover the oldest risk in modern finance</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Wed, 22 Jul 2026 06:08:51 +0000</pubDate>
      <link>https://dev.to/barissozen/ai-agents-are-about-to-rediscover-the-oldest-risk-in-modern-finance-1mej</link>
      <guid>https://dev.to/barissozen/ai-agents-are-about-to-rediscover-the-oldest-risk-in-modern-finance-1mej</guid>
      <description>&lt;p&gt;On 26 June 1974, German regulators withdrew the banking license of Bankhaus Herstatt, a mid-sized bank in Cologne, in the middle of the trading day. The timing is what made it famous. Herstatt's FX counterparties had already irrevocably paid the Deutsche Mark legs of that day's trades in Frankfurt. The corresponding dollar legs were due to settle hours later in New York. They never did.&lt;/p&gt;

&lt;p&gt;Banks that had done nothing wrong except pay first were left holding losses on trades that were half-settled: one leg complete, one leg gone. The episode was significant enough to name a category of risk - settlement risk, still called Herstatt risk - and it pushed the G10 central banks to form the Basel Committee on Banking Supervision later that same year.&lt;/p&gt;

&lt;p&gt;Here is the part worth sitting with: the actual fix took 28 years.&lt;/p&gt;

&lt;h2&gt;
  
  
  The fix was a central utility
&lt;/h2&gt;

&lt;p&gt;CLS launched in 2002 with one job: settle FX trades payment-versus-payment. Both legs of a trade settle simultaneously, or neither does. There is no window in which one side has paid and the other has not. It works - CLS settles on the order of trillions of dollars a day - and it is the reason a Herstatt-style failure has not repeated at scale in the currencies it covers.&lt;/p&gt;

&lt;p&gt;But look at the shape of the solution. To make two legs atomic, traditional finance built one institution that every major bank trusts, connected the world's main currencies to it, and routed the trades through it. Atomicity was achieved by adding the most systemically important middleman in the history of payments.&lt;/p&gt;

&lt;p&gt;That was probably the only option available to 1990s banking infrastructure. It is not the only option available now.&lt;/p&gt;

&lt;h2&gt;
  
  
  The agent economy is still in its payments era
&lt;/h2&gt;

&lt;p&gt;A study published last week by Keyrock, run with Coinbase and Tempo, put numbers on machine-to-machine commerce: 176 million transactions, $73 million settled between May 2025 and April 2026, average transaction size around $0.31.&lt;/p&gt;

&lt;p&gt;Those numbers describe a payments economy. A payment is a single leg: value moves one direction, against a service delivered off-chain. If it fails, you retry it. The current agent rail stack - HTTP-native payment standards, facilitator APIs, custodial escrow - is built around exactly this case, and for this case it is reasonable.&lt;/p&gt;

&lt;p&gt;Trades are a different object. A trade is two or more legs that must move together: asset against asset, often on different chains, often between parties who met through a directory minutes earlier. And agent workflows compound legs quickly. An agent that sells one asset, uses the proceeds to acquire another, and posts part of the result as collateral is running a three-leg sequence where leg 2 depends on leg 1 and leg 3 depends on leg 2. A ring of three agents - data seller, compute provider, broker - settling a three-way exchange is a cycle of dependent legs.&lt;/p&gt;

&lt;p&gt;For multi-leg structures, partial completion is not an edge case. It is the default failure mode.&lt;/p&gt;

&lt;h2&gt;
  
  
  Agents make leg risk worse, not better
&lt;/h2&gt;

&lt;p&gt;Three properties of agent commerce sharpen the 1974 problem.&lt;/p&gt;

&lt;p&gt;First, speed and volume. A human trading desk settles a manageable number of trades a day, with humans watching. An agent pipeline can half-complete a thousand multi-step sequences before anyone looks at a dashboard.&lt;/p&gt;

&lt;p&gt;Second, counterparties are strangers by design. The premise of an open agent economy is that agents discover and transact with counterparties they have never seen before. There is no relationship, no credit history, no implicit trust to fall back on.&lt;/p&gt;

&lt;p&gt;Third, there is no recourse layer. Two banks caught in a half-settled trade in 1974 had lawyers, regulators and decades of workout practice. Two autonomous agents caught in a half-settled trade have nothing, unless a human steps in - which is precisely what autonomy was supposed to remove.&lt;/p&gt;

&lt;p&gt;The instinctive answer is the 2002 answer: add a referee. Put a custodian or an escrow agent in the middle and let it hold both legs. That imports the middleman, the fees, and the single point of failure - and, as we wrote yesterday, the agent economy is already accumulating those referees at speed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Payment-versus-payment, without the utility
&lt;/h2&gt;

&lt;p&gt;There is a cryptographic construction that delivers the CLS guarantee without the institution: the hash-time-locked contract.&lt;/p&gt;

&lt;p&gt;The two-leg version is the classic atomic swap. Both parties lock funds against the same hash H(s). The party holding the secret s claims the counterparty's leg by revealing s on-chain; that same revelation is what lets the counterparty claim the other leg. If s is never revealed, both legs refund after their timeouts expire. Both sides complete, or both sides get their money back.&lt;/p&gt;

&lt;p&gt;The property generalizes. Lock N legs - a ring trade, a trade plus its collateral leg, a multi-step position assembly - against the same hash, and one revelation settles the entire structure while silence refunds the entire structure. All legs or none. That is payment-versus-payment and delivery-versus-payment collapsed into one primitive, enforced by a hash function instead of a Belgian settlement bank.&lt;/p&gt;

&lt;p&gt;We call this multi-leg trade atomicity, and it is one of the five settlement primitives we are building at Hashlock.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest tradeoffs
&lt;/h2&gt;

&lt;p&gt;Multi-leg atomicity is not free, and it is worth being precise about the costs.&lt;/p&gt;

&lt;p&gt;Capital lockup. Every leg must be funded and locked for the duration of the settlement window. More legs means more capital-time committed before anything settles.&lt;/p&gt;

&lt;p&gt;Timeout laddering. Refund windows cannot be arbitrary. They must be ordered so that every party who learns the secret still has time to claim their inbound leg, with each step padded by the confirmation time of the slowest chain involved. The total window therefore grows with leg count. Long rings across slow chains get expensive in time, which is a real constraint on how many legs are practical.&lt;/p&gt;

&lt;p&gt;The last-mover option. The secret holder can wait until near the deadline to decide whether to reveal. For the window's duration, they hold a free option on the trade. Short windows, counterparty screening above the settlement layer, and pricing all mitigate this; none of them make it disappear.&lt;/p&gt;

&lt;p&gt;Liveness. Parties must be online to claim within their windows, or delegate that job. A crashed agent that misses its claim window turns a completed trade into a refund.&lt;/p&gt;

&lt;p&gt;These tradeoffs are why atomic multi-leg settlement is a primitive you reach for when counterparty risk matters more than latency - which is a good description of high-value trades between anonymous autonomous agents.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this stands
&lt;/h2&gt;

&lt;p&gt;Status, precisely: settlement is live end-to-end on Ethereum mainnet. Sui contracts are deployed and CLI-tested, with gateway wiring in progress. Bitcoin support is validated on signet; mainnet is pending. Agents reach the protocol over MCP - six tools, npm package &lt;a href="https://www.npmjs.com/package/@hashlock-tech/mcp" rel="noopener noreferrer"&gt;&lt;code&gt;@hashlock-tech/mcp&lt;/code&gt;&lt;/a&gt;, currently v0.4.1. The settlement design is written up in our &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN whitepaper&lt;/a&gt;, and the protocol lives at &lt;a href="https://hashlock.markets/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-22-agents-leg-risk" rel="noopener noreferrer"&gt;hashlock.markets&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;FX markets earned atomic settlement the hard way: a bank failure, a new supervisory committee, and 28 years of infrastructure work. The agent economy gets to inherit the finished concept on day one.&lt;/p&gt;

&lt;p&gt;If you are building agent workflows today: how many dependent legs does your longest flow have, and what happens right now if it stops halfway? I would like to hear what the failure story looks like in practice.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>The agent economy keeps re-hiring the middlemen crypto was built to remove</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Tue, 21 Jul 2026 07:18:44 +0000</pubDate>
      <link>https://dev.to/barissozen/the-agent-economy-keeps-re-hiring-the-middlemen-crypto-was-built-to-remove-152</link>
      <guid>https://dev.to/barissozen/the-agent-economy-keeps-re-hiring-the-middlemen-crypto-was-built-to-remove-152</guid>
      <description>&lt;p&gt;A study published this week by crypto investment firm Keyrock, run with Coinbase and the Tempo blockchain, put real numbers on the agent economy for the first time: &lt;strong&gt;$73 million settled across 176 million machine-to-machine transactions&lt;/strong&gt; between May 2025 and April 2026. Over 104,000 registered agents across 15+ directories. Average transaction size: about $0.31.&lt;/p&gt;

&lt;p&gt;And one more number, the one that should stop you: &lt;strong&gt;roughly 98% of those settlements moved through a single company's stablecoin.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Keyrock's own researcher put the risk plainly: if that one issuer faces a regulatory challenge, a de-peg event, or even sustained downtime, the agent economy has no fallback.&lt;/p&gt;

&lt;p&gt;That is not a decentralized economy. That is an economy with a single load-bearing middleman.&lt;/p&gt;

&lt;h2&gt;
  
  
  The pattern nobody is naming
&lt;/h2&gt;

&lt;p&gt;Zoom out from the stablecoin and the same shape repeats everywhere in agent commerce this year:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Payment rails went official.&lt;/strong&gt; x402 graduated into a Linux Foundation standard, 40 members deep - Visa, Mastercard, Stripe, Circle, Google. Genuinely useful. Also: built around payment facilitators sitting in the flow.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Escrow moved inside the exchange.&lt;/strong&gt; One major exchange now runs agent escrow, settlement and dispute resolution inside its own walls. The agent's funds sit with the referee.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custodial referees are multiplying.&lt;/strong&gt; New escrow services pitch themselves as the "neutral custodian" for agent trades - a dispute judge who holds the money while the agents argue.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Brokers are shipping agent MCPs.&lt;/strong&gt; The "AI agent trading" search results are filling with custodial broker accounts wearing an MCP interface.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Different products, different chains, different logos. The same architectural move every time: &lt;strong&gt;solve the agent trust problem by inserting a party both agents must trust.&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Which is strange, because removing exactly that party was crypto's founding idea.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why custody keeps winning by default
&lt;/h2&gt;

&lt;p&gt;To be clear, this is not a conspiracy. Custody is the &lt;em&gt;easy&lt;/em&gt; answer to a real question: how do two autonomous agents, with no legal identity, no reputation, and no ability to sue each other, trade without one side walking off mid-trade?&lt;/p&gt;

&lt;p&gt;A custodian answers it the way humans always have: put a trusted adult in the room. Hold both sides' funds. Referee disputes. Charge for the seat.&lt;/p&gt;

&lt;p&gt;It works. It also quietly re-creates everything crypto spent fifteen years engineering away: counterparty risk concentrated in one balance sheet, a honeypot worth attacking, a permission gate on who gets to trade, and - as the 98% number shows - systemic dependence on a handful of intermediaries.&lt;/p&gt;

&lt;p&gt;Custody is a habit, not a requirement.&lt;/p&gt;

&lt;h2&gt;
  
  
  The settlement leg never needed a middleman
&lt;/h2&gt;

&lt;p&gt;Here is the part that gets lost in the noise: for the trade itself - asset for asset, chain to chain - the trustless answer has existed for years. It is a hash-time-locked contract (HTLC), and the mechanics fit in a paragraph:&lt;/p&gt;

&lt;p&gt;Both sides lock funds against the same cryptographic secret. Revealing the secret to claim one leg automatically hands the counterparty the key to claim the other. Stay silent past the timeout, and both legs refund. &lt;strong&gt;Either both sides get paid, or neither does.&lt;/strong&gt; There is no state in which a middleman is holding your money, because there is no middleman.&lt;/p&gt;

&lt;p&gt;The contract does not care if the counterparty is a human, an agent, or a thousand Sybil fakes. Safety rests on the math, not on knowing who is on the other side - and not on anyone's balance sheet.&lt;/p&gt;

&lt;p&gt;PayPal made it safe to pay strangers online by becoming the trusted middleman. Atomic settlement makes it safe for agents to trade with strangers on-chain with no middleman at all. Your money never leaves your wallet until theirs arrives.&lt;/p&gt;

&lt;h2&gt;
  
  
  What this looks like in practice
&lt;/h2&gt;

&lt;p&gt;This is what we build at Hashlock: sealed-bid RFQ plus HTLC atomic settlement, exposed to AI agents as an MCP server with six tools (quote, create, withdraw, refund, status, RFQ). MCP because that is the interface agents already speak.&lt;/p&gt;

&lt;p&gt;Where it stands today, stated precisely:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ethereum mainnet: live end-to-end.&lt;/strong&gt; Immutable V1 contracts.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sui: contracts deployed and CLI-tested.&lt;/strong&gt; Gateway wiring in progress.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bitcoin: validated on signet.&lt;/strong&gt; Mainnet pending.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Install: &lt;code&gt;npm install @hashlock-tech/mcp&lt;/code&gt; (v0.4.1). The protocol design and its game theory are written up in our &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN paper&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest tradeoffs
&lt;/h2&gt;

&lt;p&gt;Atomic settlement is not free. Capital locks up for the duration of the swap. Timeout parameters carry real design weight - too short and honest slow parties get refunded against their will, too long and capital drags. Custodians still buy you things HTLCs do not: fiat ramps, deep order books, a support desk, dispute resolution for off-chain legs.&lt;/p&gt;

&lt;p&gt;If your agent needs those, use them - knowingly. The argument is narrower and sharper: &lt;strong&gt;the settlement leg of a crypto-to-crypto trade is the one place where the middleman is architecturally unnecessary.&lt;/strong&gt; Paying the custody tax there is a choice. Increasingly, it looks like a choice being made by default, at ecosystem scale, without anyone deciding it.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;The agent economy is being assembled right now, rail by rail, standard by standard. The 98% number says concentration risk is already here. Every custodial referee added this year says the habit is compounding.&lt;/p&gt;

&lt;p&gt;So, builders: if your agent could settle atomically, with no custodian in the trade, would you still hand it custody - and if so, what exactly are you buying with it?&lt;/p&gt;

&lt;p&gt;Tell me where this argument breaks. I answer every comment.&lt;/p&gt;




&lt;p&gt;&lt;em&gt;Hashlock - the atomic settlement layer for the agent economy. Live on Ethereum mainnet: &lt;a href="https://hashlock.markets/?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-21-rehiring-middlemen" rel="noopener noreferrer"&gt;hashlock.markets&lt;/a&gt;&lt;/em&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Atomic settlement is Sybil-blind by design - and that is why a counterparty directory sits above it</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Mon, 20 Jul 2026 06:47:43 +0000</pubDate>
      <link>https://dev.to/barissozen/atomic-settlement-is-sybil-blind-by-design-and-that-is-why-a-counterparty-directory-sits-above-it-31j0</link>
      <guid>https://dev.to/barissozen/atomic-settlement-is-sybil-blind-by-design-and-that-is-why-a-counterparty-directory-sits-above-it-31j0</guid>
      <description>&lt;p&gt;Last week a reader left a comment on one of our posts that was sharper than most product feedback we get. The point, paraphrased: a hash-time-locked contract is &lt;strong&gt;Sybil-blind&lt;/strong&gt;. It cannot distinguish a real counterparty from a fake one, or one identity from ten thousand spun up by the same actor. The implication hanging in the air was: isn't that a problem?&lt;/p&gt;

&lt;p&gt;It is worth answering carefully, because the honest answer is &lt;em&gt;no, that blindness is the point&lt;/em&gt; - and understanding why draws a clean line between two things that agent-settlement systems keep conflating.&lt;/p&gt;

&lt;h2&gt;
  
  
  What an HTLC actually guarantees
&lt;/h2&gt;

&lt;p&gt;Start with the mechanism. A cross-chain atomic swap has two control parameters.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The hashlock.&lt;/strong&gt; One party picks a secret &lt;code&gt;s&lt;/code&gt; and publishes &lt;code&gt;H = SHA-256(s)&lt;/code&gt;. Both legs of the trade - say an asset on Ethereum and an asset on another chain - are locked so they can only be claimed by revealing a preimage of &lt;code&gt;H&lt;/code&gt;. Because both legs bind to the &lt;em&gt;same&lt;/em&gt; &lt;code&gt;H&lt;/code&gt;, revealing &lt;code&gt;s&lt;/code&gt; to claim one leg exposes it on-chain, which lets the counterparty claim the other. Either both legs complete or neither does.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The timelock.&lt;/strong&gt; If nobody reveals &lt;code&gt;s&lt;/code&gt;, funds cannot sit locked forever. Each leg has a timeout after which the original owner refunds. The second mover gets the earlier deadline so the first mover cannot reveal at the last second and grief them.&lt;/p&gt;

&lt;p&gt;Now read those two rules again and notice what is &lt;em&gt;not&lt;/em&gt; in them: identity. The contract never asks who you are. It checks one thing - can you produce a preimage of &lt;code&gt;H&lt;/code&gt; before the timeout - and enforces the outcome. That is the whole trust model. It is why the settlement is trustless and non-custodial: safety does not rest on knowing, trusting, or verifying the counterparty. It rests on the math.&lt;/p&gt;

&lt;p&gt;So when the reader says the contract is Sybil-blind, they are exactly right, and it is the same statement as "the contract is trustless." You cannot have one without the other. The moment settlement safety starts depending on &lt;em&gt;who&lt;/em&gt; the counterparty is, you have reintroduced the thing atomicity was built to delete.&lt;/p&gt;

&lt;h2&gt;
  
  
  What Sybil-blindness covers, and what it does not
&lt;/h2&gt;

&lt;p&gt;Here is the distinction worth internalizing. There are two different risks in any trade:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Default risk&lt;/strong&gt; - the counterparty takes your asset and gives nothing back, or disappears mid-trade. Atomic settlement eliminates this completely, for real and fake identities alike. A Sybil army cannot beat an HTLC any better than a single honest party can; the contract simply refunds you if the trade does not complete. Blindness is a full defense here.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;Selection risk&lt;/strong&gt; - do you want to enter this trade with this address &lt;em&gt;at all&lt;/em&gt;? Maybe it is a wash-trading cluster inflating volume. Maybe it is an address you are not permitted to transact with. Maybe you want to route only to counterparties with a settlement history. Atomicity says nothing about any of this, because it was never supposed to.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The mistake is expecting one primitive to solve both. It cannot, and it should not try. A settlement layer that starts screening identities to decide whether to settle is no longer a neutral settlement layer - it is a gatekeeper, and gatekeepers are the custodial intermediaries we removed.&lt;/p&gt;

&lt;h2&gt;
  
  
  The wash-trading data makes this concrete
&lt;/h2&gt;

&lt;p&gt;A July study of on-chain agent-payment activity found that a large share of the reported "volume" was fictitious or moving inside linked internal clusters - value cycling between addresses controlled by the same actor to manufacture the appearance of activity. That is Sybil behavior at the payment-rail layer, and it is instructive for settlement.&lt;/p&gt;

&lt;p&gt;Atomic settlement does not &lt;em&gt;create&lt;/em&gt; fake volume - there is no incentive to wash-trade through an HTLC, because both legs move real assets atomically and you gain nothing by swapping with yourself. But it also does not &lt;em&gt;flag&lt;/em&gt; it. If an agent wants to avoid quoting against a known wash cluster, or wants to prefer counterparties with genuine history, the settlement contract is the wrong place to ask. It is blind on purpose.&lt;/p&gt;

&lt;h2&gt;
  
  
  The two-layer split
&lt;/h2&gt;

&lt;p&gt;So we keep the two problems apart by design rather than blurring them into one contract:&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 1 - settlement.&lt;/strong&gt; Trustless, identity-blind, atomic. Live on Ethereum mainnet today. Sui contracts are deployed and CLI-tested; Bitcoin is validated on signet. This layer never learns or checks who you are, and it never will, because that is the property that makes it safe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Layer 2 - selection.&lt;/strong&gt; An optional &lt;strong&gt;Verified Counterparty Directory&lt;/strong&gt; an agent can consult &lt;em&gt;before&lt;/em&gt; it enters an RFQ. It answers a different question - "is this counterparty one I want to engage?" - using attestations, history, and reputation signals. It can consume external identity primitives rather than reinventing them; &lt;a href="https://eips.ethereum.org/" rel="noopener noreferrer"&gt;ERC-8004&lt;/a&gt; (trustless agents, identity and reputation) is a natural source, and a directory is a consumer of those attestations, not a competitor to them.&lt;/p&gt;

&lt;p&gt;The critical architectural rule: &lt;strong&gt;settlement never depends on the directory.&lt;/strong&gt; You can trade with an unlisted counterparty and the atomic guarantee is identical - your money still never leaves your wallet until theirs arrives. The directory changes &lt;em&gt;whom you choose to quote&lt;/em&gt;, never &lt;em&gt;whether the settlement is safe&lt;/em&gt;. If Layer 2 is offline, wrong, or gamed, Layer 1 is unaffected. That one-way dependency is what lets you add counterparty verification without smuggling trust back into the settlement path.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the separation matters for agents specifically
&lt;/h2&gt;

&lt;p&gt;An autonomous agent negotiating trades across chains needs both answers, but at different moments. At &lt;strong&gt;selection time&lt;/strong&gt; - deciding whom to send an RFQ to - a reputation signal is useful and worth paying for. At &lt;strong&gt;settlement time&lt;/strong&gt; - locking the funds - the only thing that should matter is the contract, because that is the moment where trust would be most expensive to get wrong. Collapsing the two means an agent's settlement safety becomes only as good as its identity oracle. Keeping them separate means the worst a bad directory can do is send you a quote you did not want - not lose your funds.&lt;/p&gt;

&lt;p&gt;Sybil-blindness, in other words, is not a gap to be patched inside the settlement layer. It is the feature that lets everything above it stay optional.&lt;/p&gt;

&lt;h2&gt;
  
  
  The open question
&lt;/h2&gt;

&lt;p&gt;If settlement must stay identity-blind and selection lives above it, where exactly should the line sit? How much verification belongs in a directory an agent queries by choice, versus signals baked into the RFQ layer itself - and what should an agent be allowed to trade against with zero counterparty information, relying purely on atomicity? Curious how others building agent-commerce infrastructure are drawing that boundary.&lt;/p&gt;




&lt;p&gt;Settlement layer, live on Ethereum mainnet: &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-20-sybil-blind-directory" rel="noopener noreferrer"&gt;hashlock.markets/docs&lt;/a&gt;. The MCP server (&lt;code&gt;hashlock-tech/mcp&lt;/code&gt;, scoped) is on npm. Methodology behind the volume and wash-trading framing: &lt;a href="https://hashlock.markets/methodology?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-20-sybil-blind-directory" rel="noopener noreferrer"&gt;hashlock.markets/methodology&lt;/a&gt;. Academic foundation on &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN&lt;/a&gt;.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Week 14 in review: the agent economy's rails went official. The settlement seat is still empty.</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Sun, 19 Jul 2026 10:51:23 +0000</pubDate>
      <link>https://dev.to/barissozen/week-14-in-review-the-agent-economys-rails-went-official-the-settlement-seat-is-still-empty-b4o</link>
      <guid>https://dev.to/barissozen/week-14-in-review-the-agent-economys-rails-went-official-the-settlement-seat-is-still-empty-b4o</guid>
      <description>&lt;p&gt;Every Sunday we step back and map where the agent economy actually moved that week, and where the money still sits at risk. This week had a clear headline: the payment rails became official infrastructure. That's worth taking seriously. It's also only half the stack.&lt;/p&gt;

&lt;h2&gt;
  
  
  What shipped: the rails went official
&lt;/h2&gt;

&lt;p&gt;On July 14, the Linux Foundation launched the &lt;strong&gt;x402 Foundation&lt;/strong&gt; as an open-governance body with 40 member organizations. The list is not a crypto-startup roster. It's Visa, Mastercard, and American Express on the card-network side; Stripe, Adyen, and Fiserv on processing; Google and AWS on cloud; Circle and Coinbase on stablecoins; and Solana, Stellar, and Ripple on rails. When that many incumbents put their name on one vendor-neutral standard, the category has stopped being speculative.&lt;/p&gt;

&lt;p&gt;x402 itself is clean engineering. It's an HTTP-native protocol: a server answers a request with &lt;code&gt;402 Payment Required&lt;/code&gt;, the client signs a payment, and the request replays and settles. No account registration, no card checkout, no pre-funded balance with the provider. Facilitators verify and settle without ever custodying the funds. Real-world settlement today runs primarily on USDC on Base, with Solana and BNB Chain facilitators live too.&lt;/p&gt;

&lt;p&gt;A day earlier, on July 13, &lt;strong&gt;Binance's agentic wallet added x402 support&lt;/strong&gt; as an installable skill, so an agent can parse the 402, confirm, sign, replay, and return the settlement result without custom payment code. The rail is now something you plug in, not something you build.&lt;/p&gt;

&lt;p&gt;If you're building agents that need to &lt;em&gt;pay for things&lt;/em&gt; - an API call, a dataset, a metered inference step - this is genuinely good news. The plumbing is standardized and backed by people who run global payments for a living.&lt;/p&gt;

&lt;h2&gt;
  
  
  The number that complicates the picture
&lt;/h2&gt;

&lt;p&gt;Here's the part the launch posts skipped. A population-scale study published in July found that a &lt;strong&gt;large share of on-chain x402 settlement activity was either fictitious or occurred within linked internal clusters&lt;/strong&gt;. Headline volume figures - tens of millions of transactions - include a meaningful slice of wash and self-dealing traffic.&lt;/p&gt;

&lt;p&gt;That's not a knock on the protocol. It's a reminder that standardizing a rail doesn't make the flow across it real, and that "volume" and "genuine economic settlement between independent parties" are different measurements. It matters for anyone reasoning about the agent economy from transaction counts: the rail is real and the standard is real; some of the traffic is theater.&lt;/p&gt;

&lt;h2&gt;
  
  
  The gap: paying is not trading
&lt;/h2&gt;

&lt;p&gt;Strip the news down to primitives and the shape of the week is clear.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;payment&lt;/strong&gt; is one asset moving one direction. Agent A pays USDC, gets a service. x402 is excellent at this, and now standard.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;trade&lt;/strong&gt; is two assets moving two directions between two strangers. Agent A holds token X on one chain; Agent B holds token Y on another; they've agreed to exchange. Now you have a problem a payment rail was never designed to solve: &lt;strong&gt;atomicity across two legs&lt;/strong&gt;. If leg one clears and leg two doesn't, someone is out their asset. The whole reason you needed a protocol is the moment where one party could take the goods and keep the money.&lt;/p&gt;

&lt;p&gt;There are three usual answers, and two of them reintroduce the thing you were trying to remove:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;A custodian or exchange&lt;/strong&gt; holds both sides and releases when it's satisfied. Now the trade is only as trustless as the party in the middle.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A bridge&lt;/strong&gt; wraps one asset so it can move to the other chain. Now you've added a honeypot and a new trust assumption about whoever secures the wrap.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A hash-time-locked contract (HTLC)&lt;/strong&gt; binds both legs to a single secret. Revealing the preimage to claim one leg is exactly what claims the other; a timelock refunds if it never completes. No custodian, no wrap, no window where one party holds both the asset and the payment.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The third one is the settlement layer. It's the seat that stayed empty this week while the rails got standardized.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why we keep drawing this line
&lt;/h2&gt;

&lt;p&gt;This isn't x402 versus anything. A rail and a settlement layer are complementary - agents will pay on x402 &lt;em&gt;and&lt;/em&gt; settle asset-for-asset trades on an atomic layer underneath, and the same agent will do both in a single session. The mistake we watch people make is collapsing the two into one box labeled "agent payments," then wondering why a payment protocol can't safely execute a cross-chain swap. It can't, because it was never that layer.&lt;/p&gt;

&lt;p&gt;Hashlock is building that layer: sealed-bid RFQ so two agents can price a trade, fused with HTLC atomic settlement so they can execute it without a middleman. Chain status, stated precisely because it matters: &lt;strong&gt;Ethereum mainnet is live end to end today. Sui contracts are deployed and CLI-tested. Bitcoin is validated on signet, mainnet pending.&lt;/strong&gt; We don't call Sui or BTC "live," and we won't.&lt;/p&gt;

&lt;p&gt;The agents reach it as an &lt;a href="https://github.com/Hashlock-Tech/hashlock-mcp" rel="noopener noreferrer"&gt;MCP server&lt;/a&gt; with six tools - list pairs, quote, create an RFQ, respond, execute, check status - so an AI agent can run the whole settle-a-trade loop the same way it now runs the pay-for-an-API loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The week in one line
&lt;/h2&gt;

&lt;p&gt;The rails went official, and the settlement seat is still open.&lt;/p&gt;

&lt;p&gt;PayPal made it safe to pay strangers online. The agent economy still needs the layer that makes it safe to &lt;em&gt;trade&lt;/em&gt; with strangers - where your money never leaves your wallet until theirs arrives. This week the paying half got a standards body and 40 logos. The trading half is still being built in the open.&lt;/p&gt;

&lt;p&gt;Volume methodology and how we count real settlement: &lt;a href="https://hashlock.markets/methodology?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-19-week14-recap" rel="noopener noreferrer"&gt;hashlock.markets/methodology&lt;/a&gt;. The academic foundation for the RFQ + HTLC design is on &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;If you're building in this space: which layer of the agent stack do you think fills in next - and where do you think the real settlement volume (not the wash traffic) actually is today?&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>The agent-commerce stack filled in this month. Here's the map - and the one open layer.</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Sat, 18 Jul 2026 06:09:09 +0000</pubDate>
      <link>https://dev.to/barissozen/the-agent-commerce-stack-filled-in-this-month-heres-the-map-and-the-one-open-layer-193c</link>
      <guid>https://dev.to/barissozen/the-agent-commerce-stack-filled-in-this-month-heres-the-map-and-the-one-open-layer-193c</guid>
      <description>&lt;p&gt;If you build for AI agents that move value, the last two weeks were a lot to keep up with. Five separate pieces of the agent-commerce stack shipped or hardened, from a payments standardization body down to a new escrow standard. That is genuine momentum, and it is worth reading as a whole rather than as isolated headlines.&lt;/p&gt;

&lt;p&gt;So here is the map. For each layer I will note what it does well and where it stops - because the gaps tell you what is still missing more clearly than the wins do.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Rails: x402 became a Linux Foundation standard
&lt;/h2&gt;

&lt;p&gt;On July 14, 2026, the Linux Foundation announced the operational launch of the &lt;strong&gt;x402 Foundation&lt;/strong&gt; - an open-governance body to steward the x402 protocol, an open standard for payments over HTTP. The protocol, originally contributed by Coinbase, lets agents, APIs, and applications send and receive payments as easily as they exchange data.&lt;/p&gt;

&lt;p&gt;The membership list is the story: 40 members, with premier names including Adyen, AWS, American Express, Circle, Cloudflare, Coinbase, Fiserv, Google, Mastercard, Monad, MoonPay, Ripple, Shopify, Solana, Stellar, Stripe, and Visa. When Visa, Stripe, and a cloud provider all sit on the same payments board, the "how does an agent pay for something" question is effectively being answered in public.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does well:&lt;/strong&gt; standardizes agent payment initiation over HTTP. Fast, cheap, vendor-neutral.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where it stops:&lt;/strong&gt; x402 moves one asset, one direction - most volume settles a single stablecoin on a single chain. That is a payment, not a trade. Paying is "I send you USDC." A trade is "I send BTC, you send ETH, and neither of us can run off in the middle."&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Wallets: Phantom shipped an agent MCP
&lt;/h2&gt;

&lt;p&gt;Phantom released a wallet MCP that gives an AI agent a signer across Solana, Ethereum, Bitcoin, and Sui. The tools are what you would expect: get addresses, sign a message, sign a transaction, transfer tokens, buy a token. An agent reasoning with an LLM can now hold its own keys and move its own funds across four chains.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does well:&lt;/strong&gt; the key-custody layer. An agent no longer needs a human to sign for it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where it stops:&lt;/strong&gt; a wallet that signs a swap is not a protocol that settles a trade. The signer executes whatever transaction it is handed. It does not guarantee that the counterparty's leg completes atomically with yours. Signing is necessary; it is not settlement.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Marketplaces + escrow: OKX moved the business loop in-exchange
&lt;/h2&gt;

&lt;p&gt;OKX's Agent Payments Protocol wraps quotes, negotiation, metering, a payment SDK, and - on the roadmap - escrow and dispute resolution into one package on its X Layer chain, working across Base, Solana, and Ethereum. It is the most complete single-vendor "business loop" for agents so far.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What it does well:&lt;/strong&gt; one SDK for the whole commercial interaction. Convenient by design.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where it stops:&lt;/strong&gt; it is custodial and exchange-owned, and the escrow + dispute pieces are still marked "coming soon" rather than shipped. Convenience through a single venue is a real pull, but it reintroduces exactly the intermediary that trust-minimized settlement is meant to remove.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Identity + commerce: ERC-8004 and ERC-8183 advanced
&lt;/h2&gt;

&lt;p&gt;Two Ethereum standards are maturing in parallel. &lt;strong&gt;ERC-8004&lt;/strong&gt; gives agents portable identity and reputation. &lt;strong&gt;ERC-8183&lt;/strong&gt; proposes escrow-with-an-assessor for agent commerce - a neutral third party who adjudicates whether a deal completed. Together they sketch an "identity + commerce" pair for the agent economy.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;What they do well:&lt;/strong&gt; solve the "who am I dealing with, and who decides if the deal went through" problem.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Where they stop:&lt;/strong&gt; an assessor is a trusted party. Useful when the exchange is subjective (was the work good?), but for a pure asset-for-asset swap you do not need a judge if the settlement itself is atomic. A hash-time-lock contract makes the swap all-or-nothing by construction - no assessor required.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The primitive itself: a second team is running agents on atomic HTLC swaps
&lt;/h2&gt;

&lt;p&gt;The most validating signal is not from us. A second team is now running an AI agent that executes atomic HTLC swaps non-custodially - the exact hash-time-lock primitive our protocol is built on. Two independent teams, same bet: the settlement layer for agents is a trust-minimized atomic swap, not a custodial hold.&lt;/p&gt;

&lt;h2&gt;
  
  
  The one layer nobody standardized
&lt;/h2&gt;

&lt;p&gt;Line the five up and a single thread runs through them. At the moment of settlement, either someone holds the money or you trust someone who does - a bridge, a custodian, an exchange, an assessor.&lt;/p&gt;

&lt;p&gt;The open seat is this: two agents, two different assets, two different chains, two strangers - and a guarantee that no one can walk off mid-trade. That is atomic settlement, and it is the layer none of the five above actually deliver.&lt;/p&gt;

&lt;p&gt;Here is the mechanism, in one paragraph. Both legs of the trade are bound to a single secret through a hashlock &lt;code&gt;H = SHA-256(secret)&lt;/code&gt;. Claiming one leg reveals the preimage, which is exactly what is needed to claim the other. A timelock refunds each side if the trade never completes. No wrapped assets, no custodian holding the gap, no assessor deciding who was right - the math makes it all-or-nothing.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;The honest status, because chain-claim discipline matters:&lt;/strong&gt; this is live on Ethereum mainnet today. Bitcoin is validated on signet with mainnet pending. Sui contracts are deployed and CLI-tested with gateway wiring in progress. Rails ready, more trains coming - and we will only ever call a chain live when it actually is.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this framing, not "we compete with all of them"
&lt;/h2&gt;

&lt;p&gt;We do not. x402 is how an agent pays; our layer is how two agents swap. Phantom holds the keys; we settle the trade those keys sign. ERC-8004 says who the counterparty is; we make sure the swap with that counterparty is atomic. Almost every layer above is complementary. The one thing missing across all of them is a settlement primitive that never has to trust an intermediary at the exact moment value changes hands.&lt;/p&gt;

&lt;p&gt;PayPal made it safe to pay strangers online. The agent economy now has most of a stack for agents to pay each other. The piece still being written is the one that makes it safe for two agents to &lt;em&gt;trade&lt;/em&gt; with each other - where your money never leaves your wallet until theirs arrives.&lt;/p&gt;

&lt;p&gt;Protocol and tools: &lt;a href="https://hashlock.markets?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-18-agent-stack-map" rel="noopener noreferrer"&gt;hashlock.markets&lt;/a&gt; · MCP server: &lt;code&gt;@hashlock-tech/mcp&lt;/code&gt; (scoped) · Method and design: &lt;a href="https://hashlock.markets/methodology?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-18-agent-stack-map" rel="noopener noreferrer"&gt;hashlock.markets/methodology&lt;/a&gt; · Academic foundation on &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Of the five layers above, which one do you think gets standardized last - and would you rather your agent settle through an assessor or through math that cannot be argued with?&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>How an AI agent posts Bitcoin as collateral without giving up the keys</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Fri, 17 Jul 2026 06:07:44 +0000</pubDate>
      <link>https://dev.to/barissozen/how-an-ai-agent-posts-bitcoin-as-collateral-without-giving-up-the-keys-456j</link>
      <guid>https://dev.to/barissozen/how-an-ai-agent-posts-bitcoin-as-collateral-without-giving-up-the-keys-456j</guid>
      <description>&lt;p&gt;Your AI agent just agreed to a trade that needs backing. A forward it has to deliver on in 24 hours. A loan it has to repay. A leg in a multi-step swap that only completes if every other leg does. Before any of that clears, the agent has to post collateral, and the deepest collateral asset in crypto is Bitcoin.&lt;/p&gt;

&lt;p&gt;So it goes to post BTC. And immediately it hits the oldest problem in cross-chain: Bitcoin the chain cannot run the contract logic a collateralized position needs. No expressive contracts, no objects, no state machine watching the position over time. The collateral has to be &lt;em&gt;usable&lt;/em&gt; on a chain that can reason about it, while the BTC itself lives on a chain that cannot.&lt;/p&gt;

&lt;p&gt;This post is about the wrong way to solve that, the right way, and what it takes for an agent to do it without a human in the loop.&lt;/p&gt;

&lt;h2&gt;
  
  
  The easy path quietly re-custodies your collateral
&lt;/h2&gt;

&lt;p&gt;The standard fix is to wrap. Hand the real Bitcoin to a custodian, a federation, or a bridge contract, and receive a token on the destination chain. Now the agent can use that token as collateral anywhere that chain's contracts run.&lt;/p&gt;

&lt;p&gt;Look at what just happened. The agent removed the custodian from the &lt;em&gt;trade&lt;/em&gt;, then invited one straight back in at the &lt;em&gt;collateral&lt;/em&gt;. The token it now holds is a claim on someone else's honesty and solvency. If the entity holding the real coins is compromised, drained, frozen, or simply wrong, the collateral backing the agent's obligation evaporates, and the agent has no good way to audit any of it in real time.&lt;/p&gt;

&lt;p&gt;For a human treasurer, that is a known, priced risk. For an autonomous agent, it is worse: the agent cannot tell the difference between collateral it controls and collateral that only &lt;em&gt;looks&lt;/em&gt; like it controls. A settlement layer that is trustless at the moment of the trade but custodial at the moment of the collateral is not trustless. It has just moved the trust somewhere the agent stopped looking.&lt;/p&gt;

&lt;h2&gt;
  
  
  A vault that never moves the coins
&lt;/h2&gt;

&lt;p&gt;A BTC Collateral Vault takes the opposite trade. The Bitcoin never leaves Bitcoin, and it is never represented by a minted token. It stays as native BTC, locked in a script on the Bitcoin chain. What crosses to the settlement chain is not the asset. It is one piece of information: the hash of a secret.&lt;/p&gt;

&lt;p&gt;If you have seen a hash-time-locked contract (HTLC) before, this is the same machine, pointed at a new job.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Hashlock.&lt;/strong&gt; The BTC is locked in a Bitcoin script that will release only to whoever can present the preimage of a hash &lt;code&gt;H = SHA-256(secret)&lt;/code&gt;. Nobody can move the coins early, because nobody but the party who generated the secret knows it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Timelock.&lt;/strong&gt; If the obligation is never settled, a timelock path lets the agent reclaim its own BTC after a deadline. No keeper, no counterparty cooperation, no support ticket. The refund is a property of the script, not a promise from a company.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The cross-chain link.&lt;/strong&gt; The settlement-chain side of the deal is bound to the &lt;em&gt;same&lt;/em&gt; hash. Claiming the settlement leg reveals the secret on-chain; that revealed secret is exactly what unlocks the BTC. One preimage settles both sides, or neither side moves.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The collateral is real Bitcoin the whole time. The agent's keys never leave the agent. And the integrity of the position no longer depends on auditing a custodian, because there isn't one.&lt;/p&gt;

&lt;h2&gt;
  
  
  What the agent actually does
&lt;/h2&gt;

&lt;p&gt;From the agent's point of view, this is a small number of deterministic steps, which is exactly what you want when there is no human to catch a mistake.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Generate a secret and its hash. Keep the secret private.&lt;/li&gt;
&lt;li&gt;Lock native BTC into the vault script on Bitcoin, keyed to that hash and a timelock it chooses.&lt;/li&gt;
&lt;li&gt;Publish the hash and the vault reference to the settlement-chain contract holding the counter-obligation.&lt;/li&gt;
&lt;li&gt;On settlement, the claim reveals the preimage, which the agent (or the counterparty, depending on the flow) uses to unlock the BTC. If settlement never happens, the timelock refunds the agent.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;There is no step where the agent has to trust a wrapper to be solvent, a bridge to stay unhacked, or a federation to stay honest. The only things it trusts are Bitcoin's script rules and the settlement chain's contract, both of which it can verify itself.&lt;/p&gt;

&lt;p&gt;We expose this through a Model Context Protocol server: a 6-tool MCP an agent reasoning over an LLM can call directly to quote, lock, settle, and refund, so the vault flow is a set of tool calls rather than a bespoke integration for every model.&lt;/p&gt;

&lt;h2&gt;
  
  
  The honest status line
&lt;/h2&gt;

&lt;p&gt;I keep chain claims precise, because in this domain an overclaim is a lie the agent inherits.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ethereum mainnet:&lt;/strong&gt; the atomic settlement leg is live end to end today.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sui:&lt;/strong&gt; contracts are deployed and CLI-tested, not mainnet-live.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Bitcoin:&lt;/strong&gt; the collateral-vault mechanism is validated on signet. Mainnet is pending, not shipped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Roadmap:&lt;/strong&gt; Base, Arbitrum, Solana, TON.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;So the BTC Collateral Vault is a validated design on signet with a live settlement counterpart on Ethereum, not a Bitcoin-mainnet product I am pretending exists. If you build on it today, that is the surface you are building on.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is the layer worth getting right
&lt;/h2&gt;

&lt;p&gt;This week the agent economy took a real step: agent payments consolidated under a single standard as x402 moved to a foundation with dozens of members behind it. That is genuine, and it matters. But a payment rail answers one question, "how does an agent pay," and it answers it in one token, on one chain.&lt;/p&gt;

&lt;p&gt;Collateral is a different question. It is not "how do I pay you" but "how do I &lt;em&gt;back&lt;/em&gt; a promise I have not yet kept, in the best collateral asset there is, across chains, without handing it to anyone." The moment an agent posts something to back an obligation, the custodian question comes back, and most of the stack answers it by quietly re-custodying. A vault that keeps the BTC native and moves only a hash is how you answer it without blinking.&lt;/p&gt;

&lt;p&gt;If your agent could post native BTC as collateral without wrapping it, what is the first obligation you would have it back: a forward, a loan, or a leg in a multi-step trade?&lt;/p&gt;

&lt;p&gt;Docs and the 6-tool MCP: &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-17-btc-collateral-vaults" rel="noopener noreferrer"&gt;https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-17-btc-collateral-vaults&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The academic grounding for the settlement model, if you want the formal version: &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Settlement inside the exchange vs settlement in the protocol: reading OKX's Agent Payments Protocol</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Thu, 16 Jul 2026 06:34:00 +0000</pubDate>
      <link>https://dev.to/barissozen/settlement-inside-the-exchange-vs-settlement-in-the-protocol-reading-okxs-agent-payments-protocol-362o</link>
      <guid>https://dev.to/barissozen/settlement-inside-the-exchange-vs-settlement-in-the-protocol-reading-okxs-agent-payments-protocol-362o</guid>
      <description>&lt;p&gt;On April 29, 2026, OKX announced the Agent Payments Protocol (APP), an open standard meant to carry the entire business cycle between AI agents: quotes, negotiation, usage metering, settlement, and, on its roadmap, escrow and dispute resolution. It ships with a payment SDK supporting one-time, batch, and usage-based payments on OKX's X Layer chain, and it is designed to work across other chains including Ethereum and Solana. It follows Coinbase's x402 and Stripe's Machine Payments Protocol as the third major attempt to give agents a way to pay.&lt;/p&gt;

&lt;p&gt;APP is a serious piece of work, and it is worth being precise about what it is and is not. Because the interesting question it raises is not "who has the best agent payment rail." It is a narrower, load-bearing question: &lt;strong&gt;when two agents settle a trade, where should the settlement guarantee live?&lt;/strong&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Two honest readings
&lt;/h2&gt;

&lt;p&gt;Read one: the exchange wins. An autonomous agent optimizes for the path of least resistance. If one venue offers quotes, negotiation, metering, payment, and settlement behind a single SDK, that convenience is a real gravitational pull. Developers reach for the integrated option. APP could become the default surface for agent commerce simply by being the easiest thing to call.&lt;/p&gt;

&lt;p&gt;Read two: the protocol wins. "Settlement inside the exchange" has a precise technical meaning. It means that at some point in the trade, the exchange (or a component it operates) holds the funds while the other leg is arranged. That is custody in the middle of the swap. And custody in the middle of the swap is exactly the honeypot the agent economy keeps rebuilding under new names: the bridge, the OTC desk, the escrow account, the settlement venue.&lt;/p&gt;

&lt;p&gt;Both reads are defensible. That is what makes it a genuine debate rather than a strawman.&lt;/p&gt;

&lt;h2&gt;
  
  
  The distinction that actually decides it
&lt;/h2&gt;

&lt;p&gt;The clarifying frame is the difference between a payment rail and a settlement layer.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;payment rail&lt;/strong&gt; moves value from A to B. x402, Stripe MPP, and the payment side of APP are all rails. They are excellent at what they do, and agents need them.&lt;/p&gt;

&lt;p&gt;A &lt;strong&gt;settlement layer&lt;/strong&gt; guarantees an exchange of two assets between parties who do not trust each other. Agent-to-agent trading is the second problem, not the first. Agent X holds BTC and wants ETH; agent Y holds ETH and wants BTC. A rail can push agent X's BTC out. Nothing about a rail forces agent Y's ETH to come back. Something has to make both legs contingent on each other, or a third party has to stand in the middle and hold the funds until both sides are satisfied.&lt;/p&gt;

&lt;p&gt;There are only two ways to close that gap:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;A custodian holds the middle.&lt;/strong&gt; Someone (an exchange, an escrow contract with a release authority, a judge) takes the funds and releases them on delivery. This is what "settlement inside the exchange" resolves to. It works, and it reintroduces counterparty risk. Whoever holds the middle is a target: for a hack, for insolvency, and, in an agent context, for prompt injection against whatever logic controls release.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;&lt;strong&gt;The math holds the middle.&lt;/strong&gt; Lock both legs to a single hash condition. Claiming one leg reveals the secret that unlocks the other. If either side walks, both legs refund after a timeout. No party ever holds the counterparty's funds. This is a hash time-locked contract (HTLC), and it is the mechanism behind atomic settlement.&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Reading APP's own roadmap carefully
&lt;/h2&gt;

&lt;p&gt;Here is the detail that matters and that is easy to skim past: by OKX's own description, APP's escrow and dispute-resolution components are planned, not yet shipped. The payment SDK is live; the escrow-on-delivery and dispute layers are on the way. That is not a criticism, it is a status. But it means the "full business loop" is, today, mostly the payment half of the loop. The settlement-with-guarantees half is still ahead of it.&lt;/p&gt;

&lt;p&gt;That is precisely the half that has to be trust-minimized to matter for agents that do not trust each other. An escrow with a release authority is only as safe as that authority. And in 2026 we already have a public red-team result (arXiv 2601.22569) showing that when researchers attacked an agent commerce flow, the cryptographic mandates held while the reasoning layer folded. Any component that can release custody based on a judgment call inherits that fragility. Any component that releases based on a hash preimage does not.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where Hashlock sits
&lt;/h2&gt;

&lt;p&gt;We build the settlement layer, not the rail. Sealed-bid RFQ fused with HTLC atomic settlement, exposed to agents as an MCP server with a small set of tools. Both legs of a cross-chain trade lock to one secret; they clear together or refund together; no venue holds the gap in between. Your money never leaves your wallet until theirs arrives.&lt;/p&gt;

&lt;p&gt;This is complementary to the payment rails, not competitive with them. An agent can discover and negotiate a price over x402 or APP, then settle the asset swap atomically underneath. Rail on top, settlement layer below.&lt;/p&gt;

&lt;p&gt;For chain discipline, since it always matters: this runs end-to-end on &lt;strong&gt;Ethereum mainnet&lt;/strong&gt; today. Our Sui contracts are deployed and CLI-tested but not mainnet-live for agents yet, and our Bitcoin path is validated on signet with mainnet pending. When we say live, we mean Ethereum.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;APP is a strong signal that the agent economy is converging on the need for settlement, not just payment. The open question is topological: does that guarantee end up inside the venues (convenient, custodial), or one layer below them (neutral, trust-minimized)?&lt;/p&gt;

&lt;p&gt;If you had to build an agent that trades assets it cannot afford to lose today, would you route settlement through the exchange that offers everything in one SDK, or through a protocol no one has to trust? Tell me which and why.&lt;/p&gt;

&lt;p&gt;Whitepaper for the mechanism design: &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722&lt;/a&gt;&lt;br&gt;
Docs and MCP tools: &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-16-exchange-vs-protocol" rel="noopener noreferrer"&gt;https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-16-exchange-vs-protocol&lt;/a&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>A wallet that signs is not a layer that settles: reading Phantom's agent MCP</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Wed, 15 Jul 2026 09:18:26 +0000</pubDate>
      <link>https://dev.to/barissozen/a-wallet-that-signs-is-not-a-layer-that-settles-reading-phantoms-agent-mcp-2pl2</link>
      <guid>https://dev.to/barissozen/a-wallet-that-signs-is-not-a-layer-that-settles-reading-phantoms-agent-mcp-2pl2</guid>
      <description>&lt;p&gt;Phantom shipped an MCP server this month that lets an AI agent operate a Phantom wallet directly. It exposes five tools - &lt;code&gt;get_wallet_addresses&lt;/code&gt;, &lt;code&gt;sign_message&lt;/code&gt;, &lt;code&gt;sign_transaction&lt;/code&gt;, &lt;code&gt;transfer_tokens&lt;/code&gt;, &lt;code&gt;buy_token&lt;/code&gt; - across Solana, Ethereum, Bitcoin and Sui. By default it simulates a transaction first, returns the expected asset changes, and waits for a confirmation before it broadcasts anything.&lt;/p&gt;

&lt;p&gt;This is a genuinely useful piece of infrastructure, and it happens to cover the same four chains we build for. So it's a good moment to be precise about categories, because "an agent can now swap tokens across chains" and "an agent can now settle a cross-chain trade with a stranger" sound identical and are not.&lt;/p&gt;

&lt;h2&gt;
  
  
  What a wallet MCP actually gives an agent
&lt;/h2&gt;

&lt;p&gt;Strip it to the primitive: a wallet MCP turns an agent into a signer. The agent can look up its addresses, sign a message, sign and send a transaction, move tokens, and buy a token. Every one of those is a first-person action. The agent decides, the agent signs, the agent's asset moves.&lt;/p&gt;

&lt;p&gt;That's the missing hand the agent economy needed. For most of the last year, agents could reason about value but couldn't touch it - a human still had to approve each step. A wallet MCP closes that. Combined with a model reasoning over the tools (Phantom's docs show the standard MCP-client pattern), an agent can hold keys and execute on its own. The wallet layer of the stack is filling in.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where "sign" stops and "settle" begins
&lt;/h2&gt;

&lt;p&gt;Now put two agents on opposite sides of a trade. Agent A has BTC and wants ETH. Agent B has ETH and wants BTC. They don't trust each other. Walk it through with signer tools only:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Agent A signs and sends its BTC.&lt;/li&gt;
&lt;li&gt;Agent A now waits for Agent B to send ETH.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Step 2 is the whole problem. Nothing in a signer binds Agent B's leg to Agent A's. &lt;code&gt;sign_transaction&lt;/code&gt; moves one asset, one direction, and it's irreversible the moment it confirms. A wallet is very good at "push my asset out." It has no opinion about whether anything comes back. Between the two sends there is a window where one party is exposed, and in practice that window is why today's agent trades route through a custodian, a bridge, or an escrow-with-judge - somebody who holds the money while it clears. That somebody is the honeypot.&lt;/p&gt;

&lt;p&gt;This isn't a knock on Phantom. A wallet is not supposed to guarantee a counterparty's leg. That's a different layer.&lt;/p&gt;

&lt;h2&gt;
  
  
  What settlement adds on top of signing
&lt;/h2&gt;

&lt;p&gt;Atomic settlement binds both legs to a single secret. Concretely, a hash-time-locked contract (HTLC):&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Both legs lock to the same hash &lt;code&gt;H = SHA-256(secret)&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Whoever claims one leg must reveal the &lt;code&gt;secret&lt;/code&gt;, which unlocks the other leg.&lt;/li&gt;
&lt;li&gt;If nobody claims before the timelock expires, both legs refund.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The property that a signer can't provide falls straight out of that: the trade either completes on both sides or unwinds on both sides. There is no state where Agent A's BTC is gone and Agent B's ETH never arrives. No custodian holds the gap, because there is no gap to hold - the cryptography does the holding. Your money never leaves your wallet until theirs arrives.&lt;/p&gt;

&lt;p&gt;So the two tools compose cleanly rather than compete. A wallet MCP is how an agent &lt;em&gt;signs&lt;/em&gt; its leg. A settlement protocol is what makes the &lt;em&gt;pair of legs&lt;/em&gt; safe between strangers. You want both. One is the hand; the other is the handshake.&lt;/p&gt;

&lt;h2&gt;
  
  
  The stack view
&lt;/h2&gt;

&lt;p&gt;It's worth zooming out, because Phantom is one more piece landing in a pattern that's now obvious:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Wallets&lt;/strong&gt; so an agent can hold keys and sign - Phantom's MCP, MetaMask's agent wallet, Coinbase for Agents.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Rails&lt;/strong&gt; so an agent can move value one direction, fast - x402, which has cleared over 160M payments.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Marketplaces and reputation&lt;/strong&gt; so an agent knows who to transact with - OKX.AI, ERC-8004 identity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Settlement&lt;/strong&gt; so two agents who don't trust each other can complete a &lt;em&gt;trade&lt;/em&gt; - two assets, two directions, no intermediary at the moment of exchange.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The first three are filling in fast, and mostly custodial or intermediated at the exact instant value changes hands. The trust-minimized cross-chain settlement seat is the one still open. That's the seat we're building for: sealed-bid RFQ plus HTLC atomic settlement, exposed to agents as an MCP server, no bridge and no custodian.&lt;/p&gt;

&lt;p&gt;Where we actually are, stated plainly: Ethereum mainnet is live end-to-end today. Sui contracts are deployed and CLI-tested, with gateway wiring in progress - not mainnet-live for agents yet. Bitcoin is validated on signet, mainnet pending. "Rails ready, trains coming" - and we'd rather be exact about that than round up.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why the distinction matters if you're building agents
&lt;/h2&gt;

&lt;p&gt;If you're wiring an autonomous agent to touch value, the practical takeaway is to separate two questions you might otherwise merge: &lt;em&gt;can my agent sign and move its own assets?&lt;/em&gt; and &lt;em&gt;what guarantees the other side of a trade with someone I don't trust?&lt;/em&gt; A wallet MCP answers the first. It does not answer the second, and no amount of simulation-before-signing changes that, because simulation checks your own transaction, not the counterparty's follow-through. For same-party operations, a signer is the whole answer. For a trade between strangers, you need something that binds both legs.&lt;/p&gt;

&lt;p&gt;Docs and the six-tool settlement MCP: &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-15-wallet-signer-vs-settlement-layer" rel="noopener noreferrer"&gt;https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=article&amp;amp;utm_campaign=2026-07-15-wallet-signer-vs-settlement-layer&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The academic version of the argument, with the protocol worked out formally, is in our SSRN paper: &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Question for the builders: as agents get their own wallets, where do you think the settlement guarantee should live - inside each wallet, or as a shared protocol layer underneath all of them? Curious how you'd draw the line.&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
    <item>
      <title>Agent payments crossed 160M transactions. Every one settled on one chain. That's the gap.</title>
      <dc:creator>Baris Sozen</dc:creator>
      <pubDate>Tue, 14 Jul 2026 06:07:42 +0000</pubDate>
      <link>https://dev.to/barissozen/agent-payments-crossed-160m-transactions-every-one-settled-on-one-chain-thats-the-gap-1o2l</link>
      <guid>https://dev.to/barissozen/agent-payments-crossed-160m-transactions-every-one-settled-on-one-chain-thats-the-gap-1o2l</guid>
      <description>&lt;p&gt;Agent-to-agent payments just crossed &lt;strong&gt;160 million transactions&lt;/strong&gt; on x402, the HTTP-402 micropayment protocol Coinbase seeded and the Linux Foundation now hosts. The backer list reads like a who's-who of payments infrastructure: Cloudflare, Stripe, AWS, Google, Visa, Circle, Solana. AWS wired x402 into CloudFront and WAF this June. There's an app store (Agent.market) with OpenAI, Bloomberg, and CoinGecko as providers. Roughly 69,000 active agents, on the order of $50M in tracked volume.&lt;/p&gt;

&lt;p&gt;By any honest measure, the "agents can pay for things" problem is being solved in public, fast.&lt;/p&gt;

&lt;p&gt;Here's the part that gets lost in the headline: &lt;strong&gt;every one of those 160M transactions settled in a single token, on a single chain.&lt;/strong&gt; Overwhelmingly USDC on Base. That is exactly what x402 is for, and it is very good at it. But it quietly assumes away the hardest case in machine commerce.&lt;/p&gt;

&lt;h2&gt;
  
  
  A payment is not a trade
&lt;/h2&gt;

&lt;p&gt;A payment moves one asset in one direction: I pay you USDC for an API call. There's a payer and a payee, and the only question is whether the money arrives.&lt;/p&gt;

&lt;p&gt;A trade is a different animal. Two assets, two directions, two counterparties who don't trust each other. Agent A has ETH and wants BTC. Agent B has BTC and wants ETH. Now there are two questions, and they're linked: does &lt;em&gt;each&lt;/em&gt; leg arrive, and what stops whoever goes second from simply taking the first leg and walking?&lt;/p&gt;

&lt;p&gt;That second question is the whole game. It's the reason human finance grew an entire industry of intermediaries: clearing houses, custodians, escrow agents, exchanges. Their job is to stand in the middle and hold the money so neither side has to trust the other.&lt;/p&gt;

&lt;p&gt;The moment you cross a chain boundary, the problem gets worse, not better. USDC-on-Base to USDC-on-Base is one ledger. ETH-to-BTC is two ledgers that share no common settlement layer and no shared clock. There is no single place where both sides of that trade can be made to happen at once.&lt;/p&gt;

&lt;h2&gt;
  
  
  Who's holding the money at the moment it clears?
&lt;/h2&gt;

&lt;p&gt;This is the question I'd put to every agent-commerce stack shipping right now, and it cuts cleanly:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Bridges&lt;/strong&gt; lock your asset on chain A and mint or release a representation on chain B. For the duration, the bridge contract holds the real funds. Bridges are the single most-drained category of infrastructure in crypto history, for exactly this reason: they're a standing pile of other people's money.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Custodial settlement&lt;/strong&gt; (the Fireblocks / Copper model, and the newer agent-native custody stacks) is trust-minimized-by-reputation, not by construction. Someone holds the float.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Escrow contracts with an evaluator&lt;/strong&gt; hold both deposits and release on a judge's decision. Great for subjective deliverables; for a swap it just relocates the trust to the judge.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;In all three, there is a moment - the moment of settlement - where a third party controls funds that belong to the two people actually trading. That moment is the honeypot. It's where the money goes missing.&lt;/p&gt;

&lt;h2&gt;
  
  
  The primitive that removes the holder
&lt;/h2&gt;

&lt;p&gt;There's a settlement construction that predates all of this and removes the middleman by design: the &lt;strong&gt;hash-time-locked contract (HTLC)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;The mechanism is small enough to hold in your head:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Agent A picks a random secret &lt;code&gt;s&lt;/code&gt; and computes &lt;code&gt;H = SHA-256(s)&lt;/code&gt;. It locks its ETH in a contract that will release &lt;strong&gt;to B&lt;/strong&gt; only if someone presents a value that hashes to &lt;code&gt;H&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Agent B sees &lt;code&gt;H&lt;/code&gt; on-chain and locks its BTC in a contract that will release &lt;strong&gt;to A&lt;/strong&gt; only against the same &lt;code&gt;H&lt;/code&gt; - with a &lt;strong&gt;shorter&lt;/strong&gt; refund timeout than A's.&lt;/li&gt;
&lt;li&gt;Agent A claims the BTC by revealing &lt;code&gt;s&lt;/code&gt;. The act of claiming publishes the secret on the Bitcoin chain.&lt;/li&gt;
&lt;li&gt;Agent B reads &lt;code&gt;s&lt;/code&gt; from that transaction and uses it to claim the ETH.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Either both legs complete against the one secret, or nothing does and both sides refund when their timelocks expire. No bridge holds the funds. No custodian holds the float. No evaluator votes. The safety comes from a hash preimage and two clocks, not from trusting a party in the middle.&lt;/p&gt;

&lt;p&gt;The mental model I keep coming back to: &lt;strong&gt;PayPal made it safe to pay strangers online.&lt;/strong&gt; The missing layer makes it safe to &lt;em&gt;trade&lt;/em&gt; with strangers on-chain - and the difference is that nobody holds your money. Your money never leaves your wallet until theirs arrives.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this is complementary to x402, not competitive
&lt;/h2&gt;

&lt;p&gt;It would be easy - and wrong - to frame this as "x402 vs HTLC." They're different layers.&lt;/p&gt;

&lt;p&gt;x402 is a payment-initiation rail. It answers "how does an agent pay for this?" and it's winning at that. HTLC settlement answers "how do two agents swap assets across chains without a holder?" One sits on top of the other. In a mature agent economy you want both: rails to move value in the common case, and a trust-minimized settlement layer underneath for the cross-chain, two-sided case a rail can't express.&lt;/p&gt;

&lt;p&gt;Saying "the rails are here" and "the cross-chain settlement layer is still an empty seat" are both true at once. The 160M number is evidence for the first claim, not against the second.&lt;/p&gt;

&lt;h2&gt;
  
  
  Where this actually stands (no overclaiming)
&lt;/h2&gt;

&lt;p&gt;Because this space is full of roadmap-as-reality marketing, the honest status:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Ethereum mainnet: live end-to-end today.&lt;/strong&gt; Agents can run atomic HTLC swaps through an MCP server exposing 6 tools (&lt;code&gt;@hashlock-tech/mcp&lt;/code&gt;, current npm 0.4.1).&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sui: contracts deployed and CLI-tested.&lt;/strong&gt; Gateway wiring is in progress. Not mainnet-live for agents yet.&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;Bitcoin: validated on signet, mainnet pending.&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;Roadmap beyond that (Base, Arbitrum, Solana, TON) is roadmap, and labeled as such.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want the mechanism in depth, the docs are at &lt;a href="https://hashlock.markets/docs?utm_source=devto&amp;amp;utm_medium=post&amp;amp;utm_campaign=2026-07-14-x402-settlement-layer" rel="noopener noreferrer"&gt;hashlock.markets/docs&lt;/a&gt;, and the formal treatment of the settlement design is in the &lt;a href="https://papers.ssrn.com/sol3/papers.cfm?abstract_id=6712722" rel="noopener noreferrer"&gt;SSRN whitepaper&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  The question
&lt;/h2&gt;

&lt;p&gt;160M payments is a real milestone and the agent economy is better for it. But payments and settlement are not the same layer, and the second one is still mostly unbuilt.&lt;/p&gt;

&lt;p&gt;So I'll ask the thing the headline skips: &lt;strong&gt;what's the first agent-to-agent workflow you can name where two agents need to swap assets across two different chains - and what are you trusting to hold the money while it clears?&lt;/strong&gt;&lt;/p&gt;

</description>
      <category>mcp</category>
      <category>ai</category>
      <category>cryptocurrency</category>
      <category>blockchain</category>
    </item>
  </channel>
</rss>
