# Paying ZEAM :: Prism Three ways. All pay in USDC on Base. 1. A pass: no install. Open https://zeampass.com/?seller=https%3A%2F%2Fmcp.zeamprism.com%2Fmcp, connect a browser-extension wallet holding USDC on Base, choose how much to load, and paste the connector link it gives you into any MCP client (in a chatbot, a custom connector) in place of this server. It pays each call from what you loaded, and when a tool needs longer it buys time and opens a line for you. Keep the link private: whoever holds it can spend the pass. The pass's page sends what is left back to your wallet. 2. ZEAM :: Pass with your own wallet, for an agent that holds one: it pays from that wallet, in front of any MCP client. Put this in your client's MCP config in place of this server, with the private key of a wallet holding USDC on Base: {"mcpServers":{"prism":{"command":"npx","args":["-y","@zeampass/client"],"env":{"PASS_PRIVATE_KEY":"0x","PASS_MCP_URL":"https://mcp.zeamprism.com/mcp"}}}} The key sits in that file, so use a wallet that holds only what you mean to spend. It needs Node.js 20 or later. Use ZEAM :: Pass 4.0.0 or later: earlier versions, formerly `@zeam-labs/x402-mcp-bridge`, read `X402_…` settings. The first paid call deposits at least 40 calls' worth, about $0.01, or the store's least deposit when gas makes that higher, and more when it has to buy time; it pays per call, and when a tool needs longer it buys time and opens a line for you. To take back what is unspent, run it once with --refund and the same two variables set. 3. Your own code: any x402 client that speaks batch-settlement, or an MPP client where the 402 carries a Payment challenge. With the stock x402 SDK, register BatchSettlementEvmScheme and wrap your client; its first deposit is 5 times the price, which for a call at the per-call price is under the least this store takes, so raise it: new BatchSettlementEvmScheme(signer, { depositPolicy: { depositMultiplier: N } }), with N large enough that N times the price reaches the figure in the 402's deposit line. Sign the USDC row without Permit2 (it is listed first and again last, identical, for indexers that keep one row per scheme; either will do): the Permit2 row needs an approval paid in ETH. The least deposit depends on the call, and each call's own 402 states it. ZEAM :: Pass with your own wallet runs on Node.js only and we publish no client in another language. The agent guide is https://zeampass.com/agents; the steps here are in https://mcp.zeamprism.com/llms.txt. ZEAM :: Pass, with a pass or your own wallet, pays in USDC on Base and needs no ETH while ZEAM sends for it: the pass service sends a pass's deposit, the relay sends your own wallet's deposit and the refund, and refund gas, when you owe any, is paid in USDC. Your own client needs none either on the row without Permit2. To pay and to get money back, ETH on Base is needed in five cases only: the Permit2 row (a one-time approval), a refund you ask to send yourself (selfSend), leaving the x402 escrow without us (initiateWithdraw, then finalizeWithdraw after the delay), opening or topping up a session yourself (approve the session escrow, then send its open or topUp, for a credential of type hash) and leaving the session escrow without the relay (requestClose, then withdraw after its grace period). ## From your own code 1. Call a paid tool with the x402 payment in params._meta["x402/payment"] (MCP) or the PAYMENT-SIGNATURE header (HTTP). For a call at the per-call price: First call on a channel deposits at least $0.003129. Later calls spend it. The unspent balance is refundable. That least is the figure now: it tracks gas and depends on the call. Each call's own 402 states the live one, and it applies to a later top-up too. 2. For time: buy_time {ms} returns your channelId. Then the line tool: {"op":"open","channelId":"0x…"} answers {nonce, sign}; sign the text in sign with the payer key (EIP-191, personal_sign); {"op":"prove","channelId":"0x…","nonce":"…","signature":"0x…"} returns a credential. 3. Calls carrying the credential (the line argument or _meta["zeam-pass/line"]; over HTTP the x-line header) carry no payment and burn the time. Scheme: batch-settlement on eip155:8453, USDC. Register BatchSettlementEvmScheme from @x402/evm/batch-settlement/client and wrap your MCP client with wrapMCPClientWithPayment from @x402/mcp. MPP pays a tool priced per call by a session, where the 402 carries a Payment challenge. MCP: the credential goes in params._meta["org.paymentauth/credential"]. HTTP: the Authorization header, scheme Payment. ## Getting money back Ask: POST /refund {channelId, issued, signature}, signed by the payer over "ZEAM Pass refund\nchannel: \nissued: " within 5 minutes, for an x402 deposit. Unburned time comes back with the balance. Gas: Our relay pays the gas of a refund when our fee on what the buyer spent covers the gas of the deposit, of the refund and of settling any calls not yet settled, and of every further deposit and every earlier refund it paid for on that channel, with a 15% margin; otherwise the buyer pays the refund's gas, with a 15% margin, in USDC, quoted before the buyer signs that payment. Here ZEAM is the seller, so our fee is all of what the buyer spent, and every 402 states the gas it has to cover. Yourself: initiateWithdraw then finalizeWithdraw after 86400s. Your gas, in ETH on Base, and it needs nothing from us. By session: When you pay by an MPP session, your deposit sits in the session escrow at 0x5e09aD70b644414cD1cD7Df1d9a10fF7899D92B8, a separate contract from the x402 escrow, and it pays the split through the payee 0x715721CB50E9e70b8044A45B0385e4eB7812a6c4. The session escrow was deployed by ZEAM, has no owner or administrator, and is not audited: nobody outside its authors has reviewed it. The unspent part of a session's deposit comes back when you close the session, in the same transaction. The ZEAM relay sends the close, or your signed exit, and you need no ETH. It pays the gas of a close when what the session spent covers the gas of opening it, of any top-up or close request the relay sent and of the close, plus 15%, and of an exit when what the session has settled covers the gas of opening it, of any top-up or close request the relay sent and of the exit, plus 15%; otherwise an MPP session pays that gas in USDC out of what returns, as an x402 refund does. You can also leave without us: requestClose on the session escrow, then withdraw after its grace period, the only way out of a session that needs ETH on Base for gas. Prices: https://mcp.zeamprism.com/pricing. Everything else: https://mcp.zeamprism.com/llms.txt. The agent guide: https://zeampass.com/agents. Terms. Patent pending: https://mcp.zeamprism.com/terms