402 Implements x402 Settles on SUI

Payments that settle inside the request.

BlockPay is payment infrastructure for software that pays. Put a price on any HTTP endpoint and let agents, machines and people pay per call in USDC — verified before your handler runs and settled on SUI before your response goes out.

to finality on SUI
<1s
smallest chargeable call
$0.0001
accounts or API keys for callers
0
middleware to integrate
1
Native to SUI · ecosystem partners
Deepbook Walrus Cetus Haedal Navi Turbos Ferra 7K Bluefin Ember SuiLend FlowX
01 Protocol

HTTP reserved 402 in 1997. BlockPay makes it settle.

x402 turns Payment Required into a working handshake. Your API quotes a price, the caller signs exactly that amount, and the payment finalizes on SUI — all inside one HTTP round trip. No redirects, no hosted checkout, no webhook to wait on.

  1. Client → Your API 01GET /v1/data
  2. Your API → Client 02402 · PAYMENT-REQUIRED
  3. Client → Your API 03retry + PAYMENT-SIGNATURE
  4. Your API → BlockPay 04verify + settle
  5. BlockPay → SUI 05submit signed tx
  6. SUI → BlockPay 06final · <1s
  7. Your API → Client 07200 OK + receipt
402

The response is the quote.

Price, asset, network and recipient travel in the 402. Callers know the exact cost before they sign anything.

PAYMENT-SIGNATURE

The signature is the authorization.

The caller signs the exact transfer it was quoted. The facilitator can broadcast it, never change it. No stored cards, no standing mandates, no chargebacks.

tx

The chain is the receipt.

Every payment ends as a balance change on SUI that anyone can verify. The receipt is the transaction digest.

02 Capabilities

Infrastructure, not a checkout.

No hosted pages, billing cycles or customer records. BlockPay is a set of primitives that sit in the request path, do one job, and stay out of the way.

/01

Sub-second, gasless settlement

USDC payments finalize on SUI in under a second, inside the request. Transfers are gasless, so callers never need to hold SUI.

/02

Sub-cent pricing

Charge $0.0001 per call through payment channels: one deposit, then signed vouchers that verify in milliseconds and settle on SUI in batches.

/03

Non-custodial by design

Funds move only on a payment the client signed, straight to your address. The facilitator verifies and broadcasts — it can never redirect money or move more than was authorized.

/04

One middleware

Wrap any HTTP route with a price. Express, Next.js, Hono or any Fetch runtime. Your callers need no accounts, API keys or sessions.

/05

Parallel by default

SUI executes independent payments in parallel, so throughput grows with your traffic instead of queuing for block space.

/06

Fees you can quote

Callers pay exactly the quoted price; gas is gasless or sponsored. You pay a flat fee per payment from prepaid credit — no percentages, no surprises.

03 Integrate

One middleware between your route and revenue.

Declare a price per route. BlockPay answers unpaid requests with a 402 quote, verifies the signed retry, runs your handler, and settles on SUI before the response goes out. If your handler fails, nobody pays.

protocol
x402 v2 · HTTP 402
network
SUI · sui:mainnet
asset
USDC
min. charge
$0.0001
finality
<1s · vouchers in ms
custody
Non-custodial
fees
Flat fee · prepaid credit
x402 · sui
import { paymentMiddleware } from "@blockpay402/express";

// Unpaid requests get a 402 quote. Paid ones reach your handler.
app.use(
  paymentMiddleware({
    facilitator: { url: FACILITATOR_URL, apiKey: API_KEY },
    network: "sui:mainnet",
    payTo: "0x9c4e…a71f",
    routes: {
      "GET /api/data": {
        price: "$0.01",
        description: "Real-time market data",
      },
    },
  })
);

app.get("/api/data", (req, res) => {
  // Runs after the payment is verified.
  res.json(getMarketData());
});
Price a route once. Everything else is handled in the request path.
04 Use cases

Built for callers that never fill out a form.

Agents, bots, devices and browsers that need to pay for one thing, right now, and move on. If it speaks HTTP, it can pay per request.

AI agents

Agents that buy their own inputs.

Agents purchase inference, data and compute per request — authorized by a signature, not an API key a human had to provision. Every call carries its own payment and its own receipt.

  • Pay per request, priced by the provider
  • No API keys or accounts — just a wallet
  • Budgets enforced in code and by what the agent can sign
session agent-7f3abudget 1.00 USDC
11:02:41.204GET /v1/search0.0010open
11:02:41.633GET /v1/inference0.002014ms
11:02:42.019GET /v1/geo/tiles0.000511ms
11:02:42.410GET /v1/inference0.002013ms
11:02:42.877GET /v1/filings/10-k0.004012ms
spent 0.0095 USDCcalls 5on-chain txs 1
A2A Soon

Agents hiring agents

Agents choose counterparts by verifiable on-chain reputation and pay on task completion. No human in the loop, no invoice in between.

rep 98/100 · 1,204 tasks$0.05 / task
Commerce

Software as the customer

Trading bots buy signals, research and execution from other services and settle on the spot, without a sales call or a contract.

signal feed$0.005 / request
Machine-to-machine

Devices that pay their way

Sensors and edge nodes pay for bandwidth, compute and data feeds in real time, with no billing account behind them.

weather feed$0.0001 / reading
APIs

Per-call APIs, no plans

Replace pricing tiers and API keys with a price per request. Callers pay for exactly what they use, starting with the first call.

vs. $99 / mo plan$0.01 / request
Content

Unbundled content

Charge per article, video or download. Readers pay fractions of a cent from a wallet — no account, no subscription wall.

premium article$0.003 / read
Data markets

Crawlers that pay the source

AI crawlers pay per page or per query. Publishers earn from the data they already serve, without negotiating licenses.

product catalog$0.0005 / page
05 Platform

Hosted for you. Open source if you'd rather not.

Point your middleware at the BlockPay facilitator and manage everything you earn from one dashboard. Or run the open-source facilitator yourself — same payment flows, your infrastructure.

app.blockpay.gg

Merchant dashboard

Sign in with the Sui wallet you get paid to. No email, no password.

  • Payments, payers and top endpoints in real time
  • Channels awaiting redemption, with one-click redeem
  • API keys, webhooks and prepaid platform credit
Checking status…

Hosted facilitator

Verifies payments, sponsors gas so callers pay exactly your price, and redeems channel vouchers in batches. Your servers authenticate with an API key from the dashboard.

https://facilitator.blockpay.gg
x402 v2 · exact · batch-settlement
06 Ship

Put a price on your first endpoint.

One middleware and a SUI address. Follow the quickstart and have a paid route answering 402s today.

Integrating at platform scale?

Dedicated onboarding, custom integration support and priority SLAs for merchants and platforms.