Tokens and payments

XUSD and XE on other chains through XE routes, pay-per-call payments with XE Pay, swaps on XE and multi-step plans with Composer.

Two assets travel between XE and other chains: XUSD, XE's dollar, backed by USDC, and XE itself. Each moves on an XE route, a Hyperlane Warp Route whose XE leg is a route account on XE. On top of the routes, XE Pay lets a buyer on another chain pay a merchant on XE, and Composer chains swaps, bridges and payments behind one approval.

USDC in and out of XE · XE on other chains · XE Pay · Swaps · Composer

#The two routes

RouteXE legEVM legsSolana legWire unit
XUSDsynthetic XUSD, scale 1/1Hyperlane HypERC20Collateral over Circle's USDC, rebalanced through CCTP V2Hyperlane collateral program over Circle's devnet USDC6 decimals: 1 USDC = 1 XUSD
XEnative XE, locked on XE, scale 10^12/1Wonderland xERC20 "XE" (18 decimals), minted and burned by HypXERC20Hyperlane synthetic program, Token-2022 mint with 6 decimals18 decimals

Every leg enrolls every other leg. On XE, the route account is a 32-byte address that starts with XEROUTE\0 (5845524f55544500):

RouteXE route account
XUSD5845524f55544500757cf52c53655be5515cc91f039c1b970f1f1384e20e0721
XE5845524f5554450053c2efba916ffb53088d4494a9f3ad9954d67c1cdb11e6c8

Leg addresses are in Reference. Amounts map exactly in both directions: 6 decimals on Solana and 18 on EVM both divide evenly into XE's micro-units, so no transfer loses dust.

#Limits

WhereLimit
XUSD on XE1,000 XUSD a day in, 10,000 outstanding, minimum 0.1, fee 5 bps out
XE on XE1,000 XE a day in, minimum 0.1, fee 5 bps out
Each USDC leg on EVM1,000 USDC a day released (rate-limited ISM)
Each XE leg on EVMThe xERC20's mint and burn limits

#Chain to XE

On EVM, approve the leg and call transferRemote with the XE recipient. The native value is the Mailbox's protocol fee only.

solidity
// USDC on Base Sepolia into XUSD on XEIERC20(usdc).approve(usdcLeg, amount);Quote[] memory q = IHypToken(usdcLeg).quoteTransferRemote(22599, xeRecipient, amount);bytes32 messageId = IHypToken(usdcLeg).transferRemote{value: q[0].amount}(22599, xeRecipient, amount);

The relayer lands the transfer on XE as a route_deliver block, and the recipient's wallet receives it. Delivery on XE is free.

On Solana, call the collateral or synthetic program's TransferRemote with destination 22599 and the XE account as recipient.

#XE to a chain

The sender signs a route_transfer block on XE: the route, the destination domain, the recipient, the router (the leg the route has enrolled for that domain), the amount, the route fee (ceil(amount × 5 / 10,000)) and the relayer's fee. Naming the router means a later re-enrollment can't redirect the transfer: it refunds it instead.

A relayer then lands the route's route_dispatch and delivers it on the destination. A transfer not dispatched within 24 hours, or one the route can't carry, is refunded on XE, by anyone.

Follow a transfer at GET /route-transfers/{hash} on the node: it ends dispatched (with the message id) or refunded.

#Who can mint or release

On each EVM leg: a threshold of XE's validators, through the XE ISM, with the route account as sender, behind a pause switch and the rate or mint limit. A compromised validator quorum could release at most the daily limit per chain until the pauser pauses. On these testnets the legs' owner, pauser and rebalancer is a test key. Handing those roles to the XE DAO's interchain account is part of mainnet preparation.

#XE Pay

XE Pay is x402 for merchants on XE. A buyer, a person or an agent, holds USDC on Base, Arbitrum or Optimism and nothing on XE. They sign one USDC authorization, and the merchant is paid on XE.

  1. The merchant's 402 lists one xe-crosschain entry per chain it accepts, next to an xe-memo entry for XE wallets.
  2. The buyer signs one EIP-3009 ReceiveWithAuthorization: no gas and no approval.
  3. A facilitator submits it to that chain's XEPaySettler. In one transaction the settler pulls the USDC, pays the facilitator's fee, sends the rest through the XUSD route to its own XE account, and commands that account to pay the merchant out of exactly that deposit.
  4. On XE the merchant receives an XUSD send with memo x402:<invoice>. It serves once that block is final, read from its own node.

Two properties hold by construction:

  • The merchant doesn't trust the facilitator for the outcome. It verifies the payment on XE: a final block, to its account, of the price, carrying the invoice.
  • The facilitator can't redirect funds. The authorization's nonce commits to the merchant, the amount, the invoice, the payout asset, the fee and its recipient, the deadline and the refund account. Only the settler can redeem it.

If the payment fails on XE, the deposit is refunded automatically.

Value
Facilitatorhttps://xe-pay-facilitator.enter-38b.workers.dev (/supported, /verify, /settle)
Facilitator fee0.001 USDC per payment, on every chain
PayoutsXUSD today. XE payouts, filled by a maker through XE Swap, need a maker to be running
SettlersBase Sepolia 0xc7715a90fA1428df11F37dbd87419513B92D106d; Arbitrum and Optimism Sepolia 0xC92513ea1E0c4bA221157B8BBe61bB523BA72877

A merchant on Hono:

typescript
import { XePayServer, HttpXePayFacilitator, MemoryXePayStore, xeReaderFromNode } from "@xe-network/protocol/x402";import { xePay } from "@xe-network/protocol/x402/xepay-hono"; const server = new XePayServer({  payTo: merchantXeAccount,  xe: { network: "xe-sim-0002", domain: 22599, reader: xeReaderFromNode("https://xe-sim-interop.enter-38b.workers.dev") },  chains: [    { network: "eip155:84532", settler: "0xc7715a90fA1428df11F37dbd87419513B92D106d" },    { network: "eip155:421614", settler: "0xC92513ea1E0c4bA221157B8BBe61bB523BA72877" },    { network: "eip155:11155420", settler: "0xC92513ea1E0c4bA221157B8BBe61bB523BA72877" },  ],  facilitator: new HttpXePayFacilitator("https://xe-pay-facilitator.enter-38b.workers.dev"),  fee: { amount: 1000n, recipient: "0x52D421e5CBE9F94D685cD68F6201326dEc91e085" },  store: new MemoryXePayStore(),}); app.get("/report", xePay({ server, price: 250_000n }), (c) => c.json(report)); // 0.25 XUSD

A buyer:

typescript
import { fetchWithXePay, evmKeyWallet } from "@xe-network/protocol/x402"; const { response } = await fetchWithXePay("https://merchant.example/report", {}, {  evm: evmKeyWallet(agentEvmKey, ["eip155:84532"], 1_000_000n), // pay at most 1 USDC per call});

Agents use the MCP tool xe_pay_request with evm_wallet, capped by XE_LOCAL_USDC_MAX_PER_PAYMENT and XE_LOCAL_USDC_DAILY_LIMIT (Wallets and signing).

See a pay-per-call API

#Swaps on XE

XE Swap trades two XE assets, such as XE and XUSD, at a market maker's signed price, with no protocol fee:

  1. The maker signs a quote off-chain: pair, price, size, minimum size, expiry, and optionally the one taker it's for.
  2. The taker publishes swap_open on its own chain: the quote, the amount, a fill deadline of at most 10 minutes and the output's recipient. The amount moves into escrow for the maker.
  3. The maker publishes swap_fill before the deadline: it pays the output, then may claim the escrow.
  4. If nobody fills, anyone publishes swap_refund once the deadline plus 90 seconds has passed, and the escrow returns to the taker.

Every decision about one swap is made on one chain, the maker's, so a fill and a refund can never both happen. A contract on another chain swaps through its remote account with op 0x40 swap_open. A site asks the person's wallet with the xe:swaps@1 capability (Wallets and signing).

#Composer

Composer plans and runs multi-step actions across chains: swap ETH for USDC on Uniswap, bridge the USDC to XE and pay on XE, or the reverse, behind one approval. It's a library, never a custodian. The user signs every step, each step is verifiable, and every partial failure has a documented recovery.

On EVM, XEComposer runs a plan's steps in one transaction, with exact approvals and minimum-output guards: 0xE56Bac43e957A0068c91Ee6f58106309CC08A7E6 on Base, Arbitrum and Optimism Sepolia. The library is @xe-network/composer, and agents use the MCP tool xe_compose (preview, then execute with the person's approval of the plan's hash).