Interchain accounts
An XE account's own account on an EVM chain, controlled from XE, with no key on that chain.
Every XE account has an account on each EVM chain XE reaches: a Hyperlane interchain account (ICA). No EVM key exists for it. The XE account controls it by dispatching to Hyperlane's ICA router, and the calls run with the ICA as msg.sender.
Because the owner is an XE account, everything that protects that account protects the ICA too: key rotation, keyset accounts and Ledger signing apply on every chain.
See an XE account call contracts on Base
#The address
The router derives the ICA from the message that reaches it. For XE, the XE account plays both the owner and the origin router, because the router takes the router component from the message's sender:
ICA = router.getLocalInterchainAccount( origin = 22599, // XE Sim owner = xeAccount, // 32 bytes router = xeAccount, // the same 32 bytes ism = XE ISM on that chain [, salt]) // typed routers onlyThe address is known before anything is sent, so you can fund it first. Compute it off-chain:
import { remoteAccountAddress } from "@xe-network/protocol/interop"; const ica = remoteAccountAddress({ xeDomain: 22599, account, // the XE account, 64 hex chain: { domain: 84532, router: "0x14EE2f01907707Ce8d13C4F5DBC40778b5b664e0", format: "legacy", implementation: "0xcDc1B2FcDa8e5216e4bA5e38905E7Cf0F9f9D5dd", ism: "0xD5Ade28E6dE5d1fE2eEa0364B30da65F4b40856E", },});remoteAccountAddress in @xe-network/protocol/interop is the ICA of an XE account on an EVM chain. It is not the same thing as a remote account, which goes the other way.
#Routers
Two body formats are deployed. Which one a router speaks follows from its version.
| Chain | Router | Version | Format | Use |
|---|---|---|---|---|
| Base Sepolia | 0x14EE2f01907707Ce8d13C4F5DBC40778b5b664e0 | 5.4.1 | legacy | The owner's ICA |
| Arbitrum Sepolia | 0x52Fbf023eDA2610653daD5ACA0b84356e4979669 | 5.4.1 | legacy | The owner's ICA |
| Optimism Sepolia | 0x2188512B68A5FF76431D538a613C0e2b15C7faf4 | 5.4.1 | legacy | The owner's ICA |
| Base Sepolia | 0x24fA135973A25778cB55149BcB8EDecaf4560036 | 12.2.0 | typed, with salt | Agent ICAs |
| Arbitrum Sepolia | 0xFbD6952Cd4cC118d77916f42960f6B5C6a73c89E | 12.2.0 | typed, with salt | Agent ICAs |
| Optimism Sepolia | 0xf107E2eEB967B6fa6626b3366B61e72e41aB9E24 | 12.2.0 | typed, with salt | Agent ICAs |
These are Hyperlane's own routers, not deployed by XE. The 5.4.1 routers aren't proxies. The SDK carries the full table, with each router's account implementation, as KNOWN_ICA_ROUTERS. It also includes the typed routers on Ethereum, Base, Arbitrum, Optimism and Robinhood Chain for later networks.
#Making calls
A dispatch to the router carries a list of calls. The ICA runs them in order. If any call reverts, the whole delivery reverts and the message stays deliverable, so it can be retried.
import { remoteCallRequest, encodeCall, selector } from "@xe-network/protocol/interop"; const request = remoteCallRequest({ account, chain, // as above calls: [ { to: USDC, // 0x036CbD53842c5426634e7929541eC2318f3dCF7e on Base Sepolia data: encodeCall(selector("transfer(address,uint256)"), ["address", "uint256"], [payee, 500_000n]), }, ], gasLimit: 500_000n, relayerFee: { payee: RELAYER_XE_ACCOUNT, amount: 250_000n },});// sign `request` as the account's next block, exactly as in MessagingThe first message to a chain also deploys the ICA. Measured Mailbox.process gas on the 5.4.1 testnet routers, with two calls (an ERC-20 transfer and a contract call): about 321,500 for the first message and 157,600 afterwards.
#Who can use it
- The owner's keys. Only a block signed by the XE account's key, or by its keyset's threshold, can dispatch. A keyset needs its spend threshold, as for a send.
- Not ordinary delegates. A delegated key with only send, receive or manage permissions can't sign a
dispatch: it would control every ICA on every chain, and XE spending limits don't bound EVM calls. - Agents, within limits. A delegated key with a remote section can dispatch within it, from its own ICA. See Agents.
- Nobody else. The router binds the ICA to the origin, the sender, the ISM and the salt. A message that names this account as owner but comes from another sender reaches only that sender's own accounts. A forged sender through an accept-all ISM lands in a different ICA.
#Reading the result
| What | Where |
|---|---|
| The message | GET /messages/{id} on the relayer, then the destination transaction |
| The ICA's calls | The destination explorer: the ICA is msg.sender of each call |
| XE's side | The dispatch block on the XE explorer, at explorer.xe.marketized.io/interop |