x402

x402 data payments

for agent| workflows

x402 requests, from quote to payment.

Inspect the SDKs that power the developer gateway.

Two lines to monetize any endpoint.

Drop the middleware in front of any route. Set a price in USDG. Your endpoint now speaks x402.

✓USDG payment on the Robinhood gateway route
✓Nonce-signed, replay-safe
✓Express middleware — any Node server
✓Self-host with BYO Robinhood RPC
server.ts
import express from "express";
import { paywall } from "@vergex402/express";

const app = express();

app.use("/api/premium", paywall({
  amount: 0.001          // USDG
  recipient: process.env.WALLET,
  network: "robinhood-mainnet",
}));
npmnpm install @vergex402/express

Agent Commerce

Agents and applications can charge for API access through a complete HTTP 402 loop: challenge, stablecoin settlement, proof retry, nonce validation, and replay protection. Wallet authorization is only needed for private portal tools.

✓

Read the price

The endpoint quotes the amount, asset, network and recipient in its x402 response.

✓

Reuse payment proof

Retry a task using its original ID and signed proof.

✓

Check before signing

The buyer checks the quote against the selected tool and remaining budget.

✓

Keep the evidence

Reports record paid queries, skipped queries and the evidence returned.

MULTICHAIN PAYMENT RAILS

Solana research.
A multichain gateway underneath.

Research runs use Solana Devnet test tokens. The developer gateway retains the network routes below.

Explore the live rail catalog
FLAGSHIP

Solana

SVM

Settlement assetUSDC

Robinhood Chain

EVM · 4663

Settlement assetUSDG

Ethereum

EVM · 1

Settlement assetUSDC

Base

EVM · 8453

Settlement assetUSDC

Arbitrum One

EVM · 42161

Settlement assetUSDC

Polygon

EVM · 137

Settlement assetUSDC

Sui

Move

Settlement assetUSDC
Dashboard noteThe developer console reads Robinhood balances. Open Research to connect a Solana wallet and view Devnet reports.
OPEN ECOSYSTEM

Built to work across the stack.

Protocols and services used by the gateway and research tools.

Building on Tabwise?

Browse the gateway, inspect the catalog, or start with an SDK.

Set a research budget

See what each query costs

Single-query limit

The buyer checks the quoted price before signing.

Task budget

Each purchase reduces the budget available to the task.

Skipped requests

Queries above either limit are skipped and listed in the report.

Remaining test tokens · example

0.100.0750.050.02500123Skipped
Query attempts

Two research modes. Choose how to select queries.

Use a fixed plan to test payments or connect a model to select queries.

RulesMode

Fixed plan

  • ✓Solana Devnet test tokens
  • ✓Predictable query order
  • ✓Fixed prices before signing
  • ✓Check budget and retry behavior
  • ✓Export the evidence as JSON
AIMode

Model-selected plan

  • ✓Configure your model endpoint
  • ✓Select from the same priced tools
  • ✓Apply the same spend limits
  • ✓Summarize purchased evidence
  • ✓Keep original source timestamps

Choose what to query

Pick a data tool and see what comes back in the report.

Check issued supply

Read the mint's total supply and decimals at a confirmed slot.

✓Zero vendor lock-in
✓Works with any HTTP client
✓Open source SDK
✓Self-hostable
server.ts
// Solana Devnet
getTokenSupply(mint, { commitment: "confirmed" })

Built for the full stack. Server, agent, and AI.

Every side of agentic commerce — monetize your endpoints, pay others', split revenue, and let AI agents discover and pay automatically.

@vergex402/ai-sdk

NEW

Gate any Vercel AI SDK route with per-call USDG payment. wrapWith402() for agents, createX402Gate() for Next.js/Hono servers.

Budget limits

NEW

Set a task budget and a price limit for individual queries.

MCP Server

The gateway exposes endpoint discovery and invoices through its MCP endpoint.

Non-Custodial

Connect a Solana wallet through Privy. Devnet purchases use a separate test wallet.

Live Settlement Feed

SSE stream at /api/feed broadcasts every settlement in real time. Build dashboards, bots, or public activity tickers on top of it.

Custom Domains

Publish a hosted gateway endpoint and configure a domain from the console.

Developer Portal

Manage the gateway, or open Solana Research to prepare a budgeted data query.

Review a research budget

ILLUSTRATIVE PREVIEW · SAMPLE VALUES
✓Task budget
✓Paid and skipped queries
✓Payment status
✓Remaining balance
0.10
Budget
0.05
Spent
2
Paid queries
0.05
Remaining
Supply0.02settled01
Largest accounts0.03settled02
Authorities0.00skipped03
ReceiptExample
0.02 test tokens
Supply query · Solana Devnet

Retry with the same task ID

The buyer stores the signed payment proof before submitting it. A completed purchase returns the stored result on retry.

First request
// Sign and store the proof
runResearch
(
  "task-01"
, {
  path: "supply"
  price: "0.02"
});
Retry the same request
// Read the stored proof
runResearch
(
  "task-01"
, {
  path: "supply"
  price: "0.02"
});

If settlement status is unknown, the task pauses for reconciliation. The report keeps the original transaction signature.

Price each query before signing.

Devnet prices in test SPL tokens. Network fees are separate.

Devnet
SupplyQuery
0.02
test tokens / query
  • ✓Read total mint supply
  • ✓Return token decimals
  • ✓Record the observed slot
  • ✓Include the query timestamp
Largest accounts
0.03
test tokens / query
  • —Sample the ten largest token accounts
  • —Compare balances with supply
  • —Include the observed slot
  • —Pool accounts may be included
Mint authorities
0.06
test tokens / query
  • —Read mint authority
  • —Read freeze authority
  • —Return parsed mint data
  • —Include the query timestamp
ToolSupplyLargest accountsAuthorities
Price0.020.030.06
SourcegetTokenSupplygetTokenLargestAccountsgetAccountInfo
ReturnedSupply and decimalsBalances and share of supplyMint and freeze authorities
OPEN BY DESIGN

One payment flow.
Built for more than one chain.

Research starts on Solana Devnet. Developers can inspect additional gateway routes in the SDK catalog.

07
SUPPORTED RAILS

Robinhood Chain, Ethereum, Base, Arbitrum, Polygon, Solana and Sui are listed in the public SDK catalog.

05 + 02
VIRTUAL MACHINES

Five EVM networks plus Solana’s SVM and Sui’s Move-based network.

USDG · USDC
SETTLEMENT ASSETS

USDG on the Robinhood flagship rail; USDC across the six additional supported rails.

Express · Hono
PUBLISHED SDK MIDDLEWARE

Use the gateway SDKs or integrate through the public HTTP routes.

Recent settlements

Gateway receipts.
Verified settlement activity.

EndpointAmountNetworkWhen
  • Connecting to verified settlement stream…

Payer addresses truncated for privacy · every row links to a signed settlement receipt

01
Agent pays

Exact USDG transfer on-chain — no account, no API key.

02
Gateway verifies

Settlement read straight from the chain before the payload unlocks.

03
Receipt issued

Every payment gets a public receipt with its transaction hash.

04
Root anchored

Published batch roots can be checked against their on-chain anchors.

Latest proof anchor · on-chain

Loading latest anchored batch…

SOLANA DEVNET · DATA TOOLS · REPORTS

Open the research workbench

Set a budget and a single-query limit, then prepare a Devnet task and import its report.

Connect a Solana wallet inside the research workbench.
Research network
Solana Devnet
Payment asset
Test SPL tokens
Report
Evidence and payment receipts