Skip to main content

Accounts and Aliases

Accounts​

Every account in Etherlink is native to exactly one interface: either the EVM interface or the Michelson interface. An interface fully owns its accounts: it defines their behaviour, manages their state, and controls how they interact with each other.

This means:

  • An EVM account (native to the EVM interface), be it an externally owned account or smart contract, behaves exactly as it would on any other EVM-compatible chain.
  • A Tezos account (native to the Michelson interface) behaves exactly as it would on Tezos Layer 1.

Each interface's tooling, wallets, and indexers work without modification within the boundaries of their native interface because the underlying account semantics are unchanged.

Aliases​

Because accounts are interface-native, a Tezos account cannot directly hold an EVM balance, and vice versa. To bridge this gap, Etherlink introduces aliases: every native account is automatically assigned a corresponding address in each of the other interfaces.

An alias is a regular address in the foreign interface — it can hold tokens, receive calls, and appear in blocks like any other account in that interface. However, even though an alias can technically hold any kind of tokens, including ERC-20 tokens, FA2 tokens, and native tez tokens, the current implementation forwards the latter (any tez tokens it receives) to the corresponding native address in the other interface via the gateways.

The mapping from a native address to its alias is deterministic and can be computed off-chain, as explained next.

EVM alias of a Tezos account​

When a Tezos account interacts with the EVM runtime for the first time, an EVM alias address is created for it. Starting with Etherlink 8.0, users and dApps can also materialize aliases on demand, without first having to make a cross-interface call. The alias is implemented using EIP-7702 delegation: a shared AliasForwarder contract is deployed at the alias address and stores the native Tezos address. Any tez received by the EVM alias is automatically forwarded back to the native Tezos account via the gateway.

The EVM alias of a user account (tz1, tz2 or tz3 address) is recoverable: it is also the address of a rescue smart wallet that can be deployed on other EVM chains and is controlled by the same Tezos key. If assets are sent to the alias on another EVM chain by mistake, for example by bridging them there, their owner can deploy the rescue wallet on that chain and recover the assets by signing with their Tezos key.

NB: The rescue wallet cannot be deployed on Etherlink itself, where the alias always remains an AliasForwarder.

The alias is the CREATE2 address, through the Safe singleton factory, of a minimal proxy to the rescue wallet implementation for the account type, followed by the account's 20-byte public key hash (the base58check payload of the address, without its 3-byte prefix):

initcode = PREFIX ‖ 0x363d3d373d3d3d363d73 ‖ IMPL ‖ 0x5af43d82803e903d91602b57fd5bf3 ‖ pkh
evm_alias = keccak256(0xff ‖ FACTORY ‖ SALT ‖ keccak256(initcode))[12:32]
ConstantValue
FACTORY0x914d7Fec6aaC8cd542e72Bca78B30650d45643d7
SALTkeccak256("tezosx.rescue.v1") = 0x9b8bb449a3d23b110d8c46424ba9b40748ac28bc7b99b7422a272950e17bb1d8
PREFIX0x733822d2fe3dce6ce4f4c7f274e2415fa3fae66c3e3b15601e57600080fd5b604180602a6000396000f3
IMPL for tz10xd532c0971e9c85e2468c8cc6c3949eae285cd513
IMPL for tz20xb47274809a09e0e0d565f1b50feba2a1cddc8199
IMPL for tz30x924f65272e0b3531084b1539b96ed0522541f7d7

For example, the EVM alias of tz1aygVpocoeEMU89vXk92sMHqPYFNZVgvrh is 0x04e9ba988ba87bbd7b75e5aa813c52ca3c31e9ae.

The EVM alias of any other Tezos account, such as a smart contract, is the first 20 bytes of the Keccak256 hash of the base58check-encoded Tezos address (the human-readable string form, e.g. KT1RJ6PbjHpwc3M5rw5s2Nbmefwbuwbdxton):

evm_alias = keccak256(utf8(tz_address_base58check))[0:20]

Michelson alias of an EVM account​

When an EVM account interacts with the Michelson runtime for the first time, a Michelson alias is created as a KT1 smart contract. Starting with Etherlink 8.0, users and dApps can also materialize aliases on demand, without first having to make a cross-interface call. This contract automatically forwards any tez it receives back to the native EVM account via the gateway.

The KT1 alias address is computed by applying BLAKE2b with a 20-byte output to the UTF-8 bytes of the lowercase hex string including the 0x prefix, then encoding the result as a KT1 contract hash:

kt1_alias = KT1(blake2b_160(utf8("0x" + lowercase_hex(evm_address))))

Michelson's SOURCE instruction returns the null address (tz1Ke2h7sDdakHJQh8WX4Z372du1KChsksyU) for operations originating from cross-interface calls — not the actual alias address. This is because Michelson requires the source to be a user account.

Translating addresses​

Off chain, EVM nodes expose two JSON-RPC methods that apply the formulas above: tez_getTezosEthereumAddress and tez_getEthereumTezosAddress. See Alias RPCs.

On chain, both gateways expose originOf and resolveAddress, which consult the kernel's records rather than only applying the formulas: they tell whether an address is a native account or an alias, map an alias back to the native account it stands for, and tell whether an alias has already been created. See NAC usage: EVM to Michelson and NAC usage: Michelson to EVM.

Tez precision across interfaces​

The two interfaces use different precision for tez:

InterfaceUnitDecimalsExample
Michelsonmutez61 tez = 1,000,000 mutez
EVMwei (of tez)181 tez = 10¹⁸ wei

When transferring tez between interfaces, amounts are scaled by a factor of 10¹². A transfer of n mutez from the Michelson interface corresponds to n × 10¹² wei in the EVM interface. Values that are not a multiple of 10¹² cannot be represented precisely in mutez and will be truncated.

Wallets and tooling​

A user who owns both a Tezos address and an EVM address effectively controls assets that may be spread across up to four addresses (the two native addresses and their respective aliases). Wallets and indexers that aggregate information from both interfaces can present a unified view of a user's balances.

arrow icon

Prev

Native Atomic Composability

Next

arrow icon
Blocks and Blueprints