Rail adapters
The five-method contract every rail adapter keeps, how Abazi picks a network in a fixed order, and how x402 facilitator health and failover work.
Switch the rail
Rail switcher
What changes when the rail changes, and what does not?
- Mandatefixed
- Policy enginefixed
- Budgetfixed
- Signerfixed
- x402 adapterswapped
- Ledgerfixed
- Receiptfixed
x402 USDC · networks
- Solana
- Base
- Polygon
- Avalanche
- Who signs
- Abazi's signer builds and signs the x402 payment. On Solana it spends as the capped delegate of the owner's account; on EVM networks it signs a transfer authorization from the agent's spending wallet, so no gas is needed.
- Where the money sits
- On Solana, in the owner's own USDC account; Abazi can spend only up to the capped delegation the owner can remove. On EVM networks, in a small per-agent spending wallet the owner funds and can sweep back.
- How it settles
- The paid retry carries the payment to the merchant, whose x402 facilitator verifies and settles it on chain. Abazi then confirms the transfer on the network.
- What the merchant sees
- A standard 402 response with payment requirements, then a paid request.
Stays the same on every rail: the mandate, the policy decision and its reason codes, the budget reservation, the signer's recheck, the ledger postings and the receipt.
Text description
Every payment runs through the same core: mandate, policy engine, budget, signer, ledger and receipt. Only the rail adapter changes with the rail.
x402 USDC
- Networks: Solana, Base, Polygon, Avalanche.
- Who signs: Abazi's signer builds and signs the x402 payment. On Solana it spends as the capped delegate of the owner's account; on EVM networks it signs a transfer authorization from the agent's spending wallet, so no gas is needed.
- Where the money sits: On Solana, in the owner's own USDC account; Abazi can spend only up to the capped delegation the owner can remove. On EVM networks, in a small per-agent spending wallet the owner funds and can sweep back.
- How it settles: The paid retry carries the payment to the merchant, whose x402 facilitator verifies and settles it on chain. Abazi then confirms the transfer on the network.
- What the merchant sees: A standard 402 response with payment requirements, then a paid request.
Direct USDT
- Networks: Ethereum, Tron.
- Who signs: Abazi's signer, through wallets built on Tether's Wallet Development Kit. The wallet seed stays inside the signer zone.
- Where the money sits: In a small per-agent spending wallet that Abazi's signer holds, funded by the owner and sweepable back to the owner.
- How it settles: A direct USDT transfer to the merchant's payout address; gas is paid in the network's native coin. After the transfer is final, Abazi calls the merchant with the transaction reference to collect the resource.
- What the merchant sees: A USDT transfer to its listed payout address, then a request that names the transaction.
Virtual card
- Networks: Card networks (Lithic).
- Who signs: Nothing is signed on chain. Abazi hands the card number to the merchant's checkout server to server; the card processor then asks Abazi to approve, decline or challenge the authorization.
- Where the money sits: In the card program at the card issuer, Lithic. The card number never reaches the agent.
- How it settles: Authorization, then clearing by the card processor. A challenged authorization waits for a person's approval and is retried.
- What the merchant sees: An ordinary card payment from a per-agent virtual card.
Each rail has one adapter. Together they cover these rails, networks and assets:
| Rail | Solana | Base | Polygon | Avalanche | Ethereum | Tron | Card networks |
|---|---|---|---|---|---|---|---|
| Stablecoins over x402 x402 v2, exact scheme | USDC | USDC | USDC | USDC | · | · | · |
| Direct USDT Direct transfer, Tether WDK | · | · | · | · | USDT | USDT | · |
| Virtual cards Card issuing with real-time authorization decisions | · | · | · | · | · | · | USD |
Per-rail settlement, receipts and custody are on Supported rails.
The adapter contract
Every adapter offers the same five methods. The core calls them in this order and never needs to know which rail it is talking to.
| Method | What it does |
|---|---|
| Quote | Asks the merchant what it would cost. For x402 this reads the 402 response and its payment options; the result also says when a resource is free or cannot be paid. |
| Authorize | Runs the signer's recheck (pause switch, mandate, reservation, fingerprint) and, only if it passes, produces the signed payment. This is the only place signing happens. |
| Execute | Sends the signed payment on its rail and reports one of three outcomes: submitted, failed before anything was sent, or unknown. |
| Confirm | Reads the network or processor and reports finalized, pending, failed or not found, with the amount, payee and asset it observed. |
| Refund | Returns money for a confirmed payment, from the merchant, or as a card return. |
Adapters never commit to the database themselves. The workflow around them records each step, so a restart after signing goes to reconciliation instead of signing again.
Network selection
A merchant's 402 response can offer several networks. Abazi picks one in a fixed order:
- Keep only the networks the mandate allows.
- Sort them by the priority order: Solana, Base, Polygon, Avalanche, Ethereum, Tron. A mandate can set its own order.
- Take the first network that is funded for this payment (a delegation with enough room on Solana, a spending wallet with enough balance elsewhere) and, for x402, has a healthy facilitator.
If no allowed network qualifies, the policy denies at step 4b with NO_FUNDED_CHAIN, or with DELEGATION_MISSING when only Solana was possible and the owner has not granted the delegation. The decision trace lists every candidate network and why it was or was not used.
Facilitator health and failover
x402 payments are settled through a facilitator. Abazi keeps an ordered list of facilitators for each network and:
- probes each one's list of supported networks on a schedule and records whether it answered and covered the network;
- opens a circuit breaker on a facilitator after 3 consecutive failures and skips it for 60 seconds;
- treats a network as healthy while at least one facilitator for it is not skipped and last answered well;
- fails over to the next facilitator only when the first could not be reached at all, so nothing was sent.
A settlement that may have been sent is never sent again to another facilitator. The payment goes to reconciling instead.
Example
An agent buys a service whose 402 response offers Base and Solana. The mandate allows both. Solana comes first in the order, but the owner has not granted the delegation, so Abazi uses Base from the agent's spending wallet. The trace shows Solana as not funded and Base as chosen.
Failure cases
| Situation | What happens |
|---|---|
| Every facilitator for the chosen network is down | The network is unhealthy; the next allowed, funded network is used, or the purchase is denied with NO_FUNDED_CHAIN. |
| The merchant's 402 asks for a different payout address than the Catalog lists | Denied at step 2 with PAYTO_MISMATCH. |
| The rail answers with an error before sending | The payment fails and the reservation is released. |
| The rail times out after sending | The payment goes to reconciling and the money stays held. |
Next steps
Trust zones
Which part of Abazi may hold which secret, which part may sign, and exactly what crosses each boundary between the agent, the core, the signer, the owner, the merchant and the public.
About Abazi
What Abazi builds, the product family under one platform, and the principles every product keeps.