EIPs Explained

ERC-7930 · Review · ERC · 2025-02-02

ERC-7930: Interoperable Addresses

A compact, versioned binary format that packs a chain identifier and an address together, so contracts and cross-chain protocols can refer to "this address on that chain" unambiguously, including non-EVM chains.

What problem does it solve?

A 0x… address (ERC-55) looks the same on Ethereum, Arbitrum, Base and dozens of other chains, but it says nothing about which chain is meant. Every bridge, intent protocol and messaging system has invented its own way to pair a chain ID with an address, which fragments tooling and makes mistakes easy.

Text formats such as CAIP-10 exist, but strings are expensive to handle on-chain, and CAIP-2's 32-character chain reference cannot represent some chains losslessly. ERC-7930 defines one canonical binary "Interoperable Address" that works inside smart contracts and covers non-EVM chains too.

How it works

An Interoperable Address is a byte string with six parts:

Field Size Meaning
Version 2 bytes 0x0001 for this spec
ChainType 2 bytes Chain namespace (e.g. 0x0000 for EVM eip155)
ChainReferenceLength 1 byte Length of the chain reference, may be 0
ChainReference variable Chain ID in binary (e.g. 0x01 for Ethereum mainnet)
AddressLength 1 byte Length of the address, may be 0
Address variable The raw address bytes
  • How each namespace serialises its chain reference and address is defined in the companion CAIP-350 profiles.
  • Address length 0 gives a Chain Identifier (a chain, no account). Chain reference length 0 gives an address valid "on any compatible chain". Both cannot be zero at once.
  • Future versions must stay convertible to version 1. Incompatible ones set the top bit of the version field.
  • For display, lowercase hex is recommended, but this is not meant to be user-facing. ERC-7828 defines a human-readable form on top. ERC-3770 is an older text style (arb:0x…).

Example from the spec, Ethereum mainnet address 0xd8dA…6045:

0x0001 0000 01 01 14 d8da6bf26964af9d7eed9e03e53415d37aa96045
  ver  type len id len address (20 bytes)

Sample code

Parsing an Interoperable Address in TypeScript (ethers v6 helpers):

import { getBytes, hexlify } from "ethers";

export function parseInteropAddress(hex: string) {
  const b = getBytes(hex);
  const version = (b[0] << 8) | b[1];
  if (version !== 1) throw new Error("unsupported version");
  const chainType = (b[2] << 8) | b[3];
  const refLen = b[4];
  const chainRef = b.slice(5, 5 + refLen);
  const addrLen = b[5 + refLen];
  const address = b.slice(6 + refLen, 6 + refLen + addrLen);
  if (refLen === 0 && addrLen === 0) throw new Error("empty address");
  return { chainType, chainReference: hexlify(chainRef), address: hexlify(address) };
}

parseInteropAddress("0x00010000010114d8da6bf26964af9d7eed9e03e53415d37aa96045");
// { chainType: 0, chainReference: "0x01", address: "0xd8da6bf2…6045" }

Things to know

  • Status: Review. The format may still change before it becomes Final.
  • The binary layout is defined here, but its meaning per chain family lives in CAIP-350 profiles maintained by the Chain Agnostic Standards Alliance. Check the profile for your namespace.
  • Canonicity is not guaranteed for every namespace. If you use these bytes as mapping keys, read the profile's notes on alternative encodings or chains with more than one identifier.
  • The chain reference is binary, so EVM chain ID 1 is the single byte 0x01, not a padded 32-byte integer.

#addresses #interoperability #cross-chain #binary-format

Details

Authors
Teddy (@0xteddybear), Joxes (@0xJoxess), Nick Johnson (@Arachnid), Francisco Giordano (@frangio), Skeletor Spaceman (@skeletor-spaceman), Racu (@0xRacoon), TiTi (@0xtiti), Gori (@0xGorilla), Ardy (@0xArdy), Onizuka (@onizuka-wl), Sam Kaufman (@SampkaML), Marco Stronati (@paracetamolo), Yuliya Alexiev (@yuliyaalexiev), Jeff Lau (@jefflau), Sam Wilson (@samwilsn), Vitalik Buterin (@vbuterin), Thomas Clowes (@clowestab), Mono (@0xMonoAx), Prem Makeig (@nxt3d), Orca (@0xrcinus)
Status
Review
Type
Standards Track / ERC
Created
2025-02-02
Required by

Machine-readable: Markdown · JSON