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:

text
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 only

The address is known before anything is sent, so you can fund it first. Compute it off-chain:

typescript
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.

ChainRouterVersionFormatUse
Base Sepolia0x14EE2f01907707Ce8d13C4F5DBC40778b5b664e05.4.1legacyThe owner's ICA
Arbitrum Sepolia0x52Fbf023eDA2610653daD5ACA0b84356e49796695.4.1legacyThe owner's ICA
Optimism Sepolia0x2188512B68A5FF76431D538a613C0e2b15C7faf45.4.1legacyThe owner's ICA
Base Sepolia0x24fA135973A25778cB55149BcB8EDecaf456003612.2.0typed, with saltAgent ICAs
Arbitrum Sepolia0xFbD6952Cd4cC118d77916f42960f6B5C6a73c89E12.2.0typed, with saltAgent ICAs
Optimism Sepolia0xf107E2eEB967B6fa6626b3366B61e72e41aB9E2412.2.0typed, with saltAgent 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.

typescript
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 Messaging

The 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

WhatWhere
The messageGET /messages/{id} on the relayer, then the destination transaction
The ICA's callsThe destination explorer: the ICA is msg.sender of each call
XE's sideThe dispatch block on the XE explorer, at explorer.xe.marketized.io/interop