Skip to content

What buyers do

This page describes what a buyer does to pay a SubEtha v2 Provider on the hosted testnet, as the product repository records it. What the public chain shows is summarised in Who sees what.

The wire is standard x402 v2 exact (EIP-3009 transferWithAuthorization). You pay with the unmodified official client, @x402/fetch and @x402/evm 2.28.0. No SubEtha client or package is required to pay.

On the hosted testnet the network is Base Sepolia (eip155:84532) and the asset is zUSDC (wrapped USDC). You need:

  • An EOA. Smart-contract wallets cannot pay; EIP-3009 verifies ECDSA only.
  • A little Base Sepolia ETH for three public transactions: mint test USDC, approve, and wrap.
  • Test zUSDC, obtained in three public steps: get test USDC (mint it to your address), approve the official zUSDC contract to spend it, then wrap it with that zUSDC contract. Wrapping gives a public zUSDC balance, which is what an x402 payment spends.

You need two contract addresses on Base Sepolia. Both tokens use 6 decimals.

Contract Address on Base Sepolia
Test USDC (the zUSDC underlying; anyone can call its mint) 0xD9D3a44745a5d04197024a20fD5BeD9b8B56C60D
zUSDC 0x32c83780bc6Ac14e8A2938d4Fd192d3721ef3D9f

These are the values the product repository records for the hosted testnet. They change when the zERC20 testnet is redeployed, and this page may lag. Before you approve or wrap, check that the Provider’s 402 asks for network eip155:84532 and that its asset is the zUSDC address above. If either differs, stop: do not approve or wrap, and ask the operator for the current addresses. A 402 only states what a Provider asks for; it does not prove which contract is zUSDC. Other hosted values are still not published here.

The test USDC is not Circle’s USDC. It is the zERC20 testnet’s own test token (its on-chain name is “Dummy USD Coin”, symbol USDC), and anyone can mint it. Calling its mint is this token’s faucet: no faucet site, sign-in or bot check is needed. This zUSDC wraps only that token, so USDC from Circle’s faucet does not work here.

Public Base Sepolia faucets exist (the Base documentation lists them under “Network faucets”), and each rate-limits claims. Most ask for something a fresh EOA does not have. On 2026-11-18 the pages said so: Alchemy and QuickNode ask for a small balance on Ethereum mainnet, QuickNode also a bot check, and Chainlink a browser wallet connection. If a faucet does not serve your EOA, claim to another testnet wallet of your own and send a little ETH from it to the EOA. The operator does not send ETH or zUSDC, not even on request.

Each step is one public transaction from your EOA. With Foundry’s cast (the calls are plain contract calls, so any wallet or tool that can call a contract works too):

Terminal window
USDC="0xD9D3a44745a5d04197024a20fD5BeD9b8B56C60D" # test USDC (see the table above)
ZUSDC="0x32c83780bc6Ac14e8A2938d4Fd192d3721ef3D9f" # zUSDC
ME="<your EOA address>"
AMOUNT="<amount in atomic units (6 decimals)>"
RPC="<a Base Sepolia RPC URL>"
KS="<your keystore file>"
PW="<0600 file with its password>"
cast send "$USDC" "mint(address,uint256)" "$ME" "$AMOUNT" --rpc-url "$RPC" --keystore "$KS" --password-file "$PW"
cast send "$USDC" "approve(address,uint256)" "$ZUSDC" "$AMOUNT" --rpc-url "$RPC" --keystore "$KS" --password-file "$PW"
cast send "$ZUSDC" "wrap(uint256,address)" "$AMOUNT" "$ME" --rpc-url "$RPC" --keystore "$KS" --password-file "$PW"
cast call "$ZUSDC" "balanceOf(address)(uint256)" "$ME" --rpc-url "$RPC"

The last line prints your public zUSDC balance in atomic units.

Amounts. Wrap a little more than you plan to spend; purchases on the testnet are small. A Provider needs zUSDC only for the probe: wrap a small amount above the probe amount. Gas is small: on 2026-11-18 mint, approve, wrap and a probe together cost about 0.000002 ETH (gas used: mint 51,255, approve 46,306, wrap 106,014), so about 0.00001 ETH is ample at such fees. Fees vary; keep a margin.

The 402 carries extensions.subetha.info with the order id and a recovery URL. Keep the order id before signing. It is what you recover with: the wallet that paid recovers the result with the official SIWX extension, and the recovery route accepts no payment. Recovery depends on retained order state, and the hosted service promises no retention.

Do not sign again for the same order after a timeout or refusal.

  • A signed authorization remains usable on chain until its validBefore. Anyone holding it may submit it.
  • A refusal or timeout is not revocation and not proof that nothing was broadcast.
  • Keep the order id, and recover if payment appears.
  • In the product repository’s multi-Provider configuration an uncertain submission is resolved against chain state. A refusal, an error or a timeout from the Provider’s own x402 facilitator is not proof that no payment will happen, so the Provider answers that the payment is pending, not that you should sign again.
  • Rate and send limits are service answers, not client errors. Wait, then request again rather than re-signing.

You sign the payment authorization; paying itself costs you no gas. In the product repository’s multi-Provider configuration (since 2026-11-22) the Provider submits the authorization to an x402 facilitator of its own, and that facilitator broadcasts it and pays the settlement gas; before that, the multi-Provider facilitator relayed it to a delegated x402 facilitator itself, and that relay was removed. The operator states (2026-11-23) that the hosted testnet runs this configuration; that is the operator’s statement, not a record of the product repository. You still need Base Sepolia ETH for the mint, approve and wrap transactions. Which facilitator a Provider uses, and on what terms, is between the Provider and that facilitator.

Self-run operation is a different configuration: it requires an operator-funded broadcaster.

  • You see your own purchases.
  • The public chain shows the payer address, the amount, the token, the per-order burn address and the time of the settle transaction.
  • The Provider sees its own orders, including the authorization identity.

The full table, including what the hosted-testnet operator sees, is in Who sees what.

Capacity is limited and the service may be paused or reset. Testnet access and questions go to contact@subethalabs.com or X @subethalabs; the landing page’s contact section has the same details. Providers should read For Providers.

Reviewed 2026-11-16 against the product repository at e972064; re-read on 2026-11-18 against 68e061b, which changes only the quickstart’s and the operations notes’ funding and probe text. Re-read on 2026-11-23 against ae97d42: the settlement text follows the relay removal and Provider-settled mode (product #29, #30). The mint, approve and wrap calls and the gas figures were added on 2026-11-18 from a live self-funded run on Base Sepolia (the commands encode the same calldata as that run); the faucet requirements are as the faucet pages stated that day, and the sentence that the operator sends no funds follows the owner’s decision of the same day. The test USDC’s name and symbol were read from the chain on 2026-11-18. The two contract addresses were added on 2026-11-21 by the owner’s decision of that day, as that product repository’s quickstart records them at 68e061b; they were not re-read from the chain that day. Evidence is the product repository’s own records; this site made no payment for this page.