Solana wallets

Every XE account has a Solana wallet, a Squads smart account run by the xe-signer program. How it's created, what EXECUTE runs, and the hints that guard it.

On Solana an XE account controls a Squads smart account. The xe-signer program is that account's only signer, and it signs only for messages from the XE account, verified by XE's ISM. No Solana key exists for the wallet.

Status: live on Solana devnet with XE Sim Interop, for the account's own wallet. Agent wallets on Solana come in the next release.

ProgramId (devnet)
xe-signer59sBTU3BGyWCDLyV8N5Jmn6UZCw1WbjNjfchRmAxU3HR
Squads Smart AccountSMRTzfY6DfH5ik3TKiyLFfXexV8uSG3d2UksSCYdunG
XE's ISM6EYye73EQgrE1d2BpS1RWozEg7SCCF46YbT9X6cs5hwF
Hyperlane Mailbox5yM5YrrzHCrp4ZPLKN9Y2eUAqEWsTbBqaorgbngQcR54

#The wallet

Each XE account gets one Squads settings account:

  • one signer, the account's record PDA ["xe_signer", 22599 as u32 LE, account, salt = 0] under xe-signer;
  • threshold 1, time lock 0, no settings authority and no rent collector.

The address people send to is the settings' vault (index 0). Unlike an EVM interchain account, the address can't be derived from the XE account alone: Squads seeds settings with a global counter. So xe-signer keeps a record per XE account, and you read the vault from it.

typescript
import { xeSignerRecord, readXeSignerSettings, squadsPdas } from "@xe-network/protocol/solana"; const record = xeSignerRecord(22599, accountBytes); // the record PDAconst data = await getAccountData(record.toBase58()); // the record's bytes, from any Solana RPCconst settings = readXeSignerSettings(data);const vault = squadsPdas.vault(settings, 0); // the wallet's address

The MCP tool xe_solana_wallet does the same for any account and shows its SOL and USDC.

#Creation

CreateWallet is permissionless: anyone may pay about 0.0052 SOL to create the wallet of any XE account. It refuses a Squads fee above 0.01 SOL, checks Squads' program config and treasury, and is idempotent per account.

You rarely call it yourself. When an XE account's first message to xe-signer arrives, the relayer puts CreateWallet in the same transaction and pays for it, within a cap per message.

#EXECUTE

The account's wallet runs instructions through op 0x01 EXECUTE. The vault signs them inside Squads' synchronous execution, with xe-signer's PDA as the one signer.

Build the instructions as usual, with the vault as their signer, then compile them into a body:

typescript
import {  Pubkey,  compileExecute,  executeBody,  vaultSolTransfer,  vaultTransferChecked,  associatedTokenAddress,  XE_SIGNER_PROGRAM,} from "@xe-network/protocol/solana";import { dispatchRequest } from "@xe-network/protocol/interop"; const USDC = Pubkey.from("4zMMC9srt5Ri5X14GAgXhaHii3GnPAEERYPJgZJDncDU"); // devnet const execute = compileExecute(  [    vaultSolTransfer(recipient, 10_000_000n, vault), // 0.01 SOL    vaultTransferChecked({      source: associatedTokenAddress(vault, USDC),      mint: USDC,      destination: associatedTokenAddress(recipient, USDC),      amount: 500_000n, // 0.5 USDC      decimals: 6,      vault,    }),  ],  {    vault, // stated in the body: xe-signer refuses it if another vault would sign    owners: [{ instruction: 1, owner: recipient }], // the token transfer's owner hint  },); const body = executeBody({ execute, deadline: BigInt(Math.floor(Date.now() / 1000) + 600) }); const request = dispatchRequest({  destinationDomain: 1399811151, // Solana devnet  recipient: XE_SIGNER_PROGRAM.bytes,  body,  relayerFee: { payee: RELAYER_XE_ACCOUNT, amount: 250_000n },});// sign `request` as the account's next block, exactly as in Messaging

What xe-signer checks before Squads runs anything:

  • The message came through the Mailbox's process authority, from origin 22599, and the record matches the sender.
  • The account list is exactly the committed one: each key and its writable flag, and no committed account is a signer. The vault is always index 0.
  • No instruction targets xe-signer itself or a BPF loader. The wallet's settings, record and vault are never in the list, so the vault can't change its own Squads settings.
  • At most 24 accounts besides the vault and at most 8 instructions.
  • The deadline: required, at most 30 days ahead. A body that arrives after it is used up without running.

#Vault and owner hints

Two optional hints let the person signing on XE see exactly what will happen on Solana, and xe-signer enforces both on chain.

HintBody flagWhat it statesOn mismatch
VaultFLAG_VAULT (0x02)The vault that will signWrongVault
OwnerFLAG_OWNERS (0x04)For each TransferChecked, the wallet whose associated token account is the destinationOwnerHintMismatch

Both work for SPL Token and Token-2022. Without an owner hint, the wallet's review shows the token account and asks the person to acknowledge a warning. A body without hints still runs.

#What the signer shows

XE's signers review a dispatch to xe-signer with xe-core:

  • System transfers and TransferChecked are decoded: amount, token and recipient.
  • A token recipient is shown by name only when the owner hint makes the destination that owner's associated token account. Otherwise the token account is shown under a warning.
  • Any other instruction shows its program, accounts and data under "This can move funds in your Solana wallet", which must be acknowledged.
  • A body the signer can't read shows as bytes under a warning.

#Rent

Ops that create Solana accounts, such as agent records and Squads policies in the next release, pay rent from a per-account PDA, XeRent (["xe_rent", 22599 as u32 LE, account]). Only messages from that XE account can spend it. Anyone can top it up with a plain transfer. Op 0x07 RENT_WITHDRAW returns lamports to the account's own vault only. EXECUTE needs no rent.

#Failure and order

  • A failing instruction reverts the whole process transaction. The message stays deliverable until its deadline, then one more delivery uses it up as expired.
  • Delivery isn't ordered. Ops with the SEQUENCED flag run in order or never: an older one that arrives late is used up as stale.
  • There's no receipt back to XE in this version. Read the result from Solana, and the message status from the relayer's GET /messages/{id}.

#On devnet

One account's run on 2026-10-18, driven only by messages from XE. Its vault is DZLAa28g…AcNT.

StepSolana transactionDispatch to delivery
Create the wallet (first message)4y6av2qz…11.6 s
Send 0.01 SOL, vault stated4mBUw7o5…16.7 s
Send 0.5 USDC, owner stated4sbPoBZk…18.9 s
Call the Memo program, signed by the vault22qv657f…17.1 s

#For agents

The MCP's local host has three Solana tools (Wallets and signing):

ToolWhat
xe_solana_walletAny account's wallet: address, SOL, USDC
xe_solana_sendSend SOL or USDC from the agent wallet's own Solana wallet, capped by the local spending policy and the relayer fee
xe_solana_executeRun instructions. Listed only with XE_SOLANA_EXECUTE=on, because the local policy can't cap arbitrary instructions

#Next release

Agent wallets on Solana: one Squads smart account per agent key, with the owner's signer on it, payments through Squads spending limits, and an optional policy restricting which programs an agent may call. XE nodes will check an agent's dispatches to Solana against its grant. Until then, xe-signer refuses agent ops and non-zero salts.