Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

This article examines ERC-6734, a proposal for a common data standard that enables consistent token identification across blockchains.

The explanation below translates, summarizes, and expands on the original proposal.

I also cover a range of other EIPs, BIPs, SLIPs, CAIPs, ENSIPs, RFCs, and ACPs.

Overview

ERC-6734 proposes a JSON token list that enables different blockchains, including Layer 1 networks, Layer 2 networks, and sidechains, to identify tokens on other chains. The goal is to handle representations of the same token consistently across different blockchains.

Motivation

The initiative is being developed by the Layer 2 Working Group (L2 WG) of EEA Communities Projects, operating under OASIS, an open standards organization. It addresses significant challenges in defining and listing tokens across multiple blockchains.

Challenges

Several problems arise when tokens are transferred between chains.

Identifying the canonical token

When a token on chain A is bridged to chain B, a new representation, such as a wrapped token, may need to be created on chain B. However, agreeing on which representation on chain B is the canonical counterpart of the original token on chain A can be difficult. The problem is not limited to Layer 2 networks; it applies to all chains connected through bridges.

Standardizing bridges and routes

Organizing and standardizing information about which bridges and routes can transfer tokens between chains is another challenge. A separate EIP is intended to address this topic, although it is closely related to token lists.

These are fundamental problems in multichain environments.

Objectives

ERC-6734 aims to clarify token usage across chains and reduce confusion for users. In particular, it seeks to make it easier to identify which token at a particular address on one chain corresponds to a token on another chain.

Existing challenges and examples

Layer 2 projects maintain their own token lists.

  • Arbitrum Extends the Uniswap token list with custom fields.
  • Optimism Similarly extends the token list, but uses a different specification from Arbitrum.

These extensions also include information about which bridges can be used to transfer tokens. Because there may be multiple bridges capable of transferring a particular token, the proposal argues that bridge information should be separated from token lists. The proposal also describes the use of a token's name and symbol to define canonicity in the existing Optimism and Arbitrum lists.

Example of an Arbitrum token
json
{
  "logoURI": "https://assets.coingecko.com/coins/images/13469/thumb/1inch-token.png?1608803028",
  "chainId": 42161,
  "address": "0x6314C31A7a1652cE482cffe247E9CB7c3f4BB9aF",
  "name": "1INCH Token",
  "symbol": "1INCH",
  "decimals": 18,
  "extensions": {
    "bridgeInfo": {
      "1": {
        "tokenAddress": "0x111111111117dc0aa78b770fa6a738034120c302",
        "originBridgeAddress": "0x09e9222e96e7b4ae2a407b98d48e330053351eee",
        "destBridgeAddress": "0xa3A7B6F88361F48403514059F1F16C8E78d60EeC"
      }
    }
  }
}

In this example, the extensions object contains a bridgeInfo field defining a route through which the token can be transferred. However, because other bridge routes may exist, this information should be separated from the token list.

Future direction

The proposed standard builds on existing frameworks, such as the Uniswap token list, while incorporating the concept of Decentralized Identifiers (DIDs). Specifically, it uses the JSON-LD (JSON Linked Data) model and introduces the following elements.

  • URI (Uniform Resource Identifier) Uniquely identifies token information and makes it resolvable.
  • JSON-LD schema Enables machine validation of data structures.

This facilitates schema validation using existing tools and improves interoperability and transparency between token lists.

Scope

Defining a standard for the tokens themselves is outside the scope of ERC-6734. The specification focuses on identifying and associating tokens.

Specification

Notation: requirement IDs

Each requirement is identified by a unique ID. The ID consists of a requirement level and a number, using the following notation.

Prefix Meaning RFC 2119 interpretation
[R] Required MUST
[D] Desirable SHOULD
[O] Optional MAY

For example, [R1] denotes a mandatory requirement, [D1] a recommended requirement, and [O1] an optional requirement.

Requirements

[R1] Mandatory data elements in a canonical token list

A token list must contain the following elements.

Element Description
type Identifier describing the type of data
tokenListId Unique token list identifier in URI form
name Token list name
createdAt Creation date and time
updatedAt Last update date and time
versions Version information
tokens List of token data

The schema later in this article provides further definitions and examples.

[R2] Structure of the tokens element

The tokens field contains compound data and must include at least the following elements.

Element Description
chainId Identifier of the chain on which the token exists
chainURI URI of the chain's genesis block
tokenId Unique URI identifying the token
tokenType Token type, such as fungible
address Token contract address
name Token name
symbol Token symbol
decimals Number of decimal places
createdAt Creation date and time
updatedAt Last update date and time
[D1] Additional elements

Including additional data elements beyond those listed above is recommended where possible.

[CR1]>[D1] Using extension data elements

When extensions are used, they must contain the following data.

Element Description
rootChainId ID of the original chain
rootChainURI URI of the original chain's genesis block
rootAddress Contract address of the original token
[R3] URI compliance

All properties defined as URIs must comply with RFC 3986.

[R4] Requirements for chainId

The chainId property must follow EIP-155.

For more on EIP-155, see the following article.

[EIP-155] Preventing Replay Attacks Across Ethereum Networks

EIP-155 provides replay protection for transactions across different networks by incorporating CHAIN_ID into the signature's v value for the relevant transaction format. Existing cryptographic libraries can be used to verify this requirement.

[O1] humanReadableTokenSymbol property

The humanReadableTokenSymbol property is optional. It represents the token in a form that humans can identify more easily.

[CR2]>[O1] Formatting rules

Construct humanReadableTokenSymbol as follows.

text
tokenSymbol + "-" + chainId

For example:

text
tokenSymbol = ETH
chainId = 1
humanReadableTokenSymbol = ETH-1

JSON schema

The following is the complete JSON schema reproduced in the original article for a canonical token list. The schema is also intended to support JSON-LD (JSON Linked Data) and compatibility with W3C DID specifications.

json
{
  "$id": "https://github.com/eea-oasis/l2/schemas/CanonicalTokenList.json",
  "$schema": "https://json-schema.org/draft-07/schema#",
  "title": "CanonicalTokenList",
  "description": "Canonical Token List",
  "type": "object",
  "required": ["type","tokenListId","name","createdAt","updatedAt","versions","tokens"],
  "properties": {
    "type": {"type": "string", "examples": ["CanonicalTokenList"]},
    "tokenListId": {"type": "string", "description": "トークンリストの公開URI"},
    "name": {"type": "string", "description": "トークンリスト名"},
    "createdAt": {"type": "string", "description": "作成日時"},
    "updatedAt": {"type": "string", "description": "更新日時"},
    "versions": {
      "type": "array",
      "items": {"type": "object", "properties": {"major": {"type": "integer"}, "minor": {"type": "integer"}, "patch": {"type": "integer"}}}
    },
    "tokens": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["chainId","chainURI","tokenId","tokenType","address","name","symbol","decimals","createdAt","updatedAt"]
      }
    }
  }
}

The schema can be validated with existing tools, such as those associated with the W3C CCG Traceability Work Item.

Conformance

This section defines criteria for determining how closely an implementation conforms to the specification.

Conformance targets

At the time described by the proposal, an official test suite covering every MUST, SHOULD, and MAY requirement had not been defined. Standardized test fixtures, or validation datasets, were planned for future versions.

Conformance levels

Three levels are defined according to implementation maturity.

Level Description
Level 1 Conforms to all MUST requirements, as verified by a test report.
Level 2 Conforms to all MUST and SHOULD requirements.
Level 3 Conforms to all MUST, SHOULD, and MAY requirements, including conditional requirements.
[D2] Explaining conformance claims

When claiming conformance, it is recommended to document the test procedure and evidence for each requirement.

[R5] Claiming higher levels of conformance (Level 2 or above)

Implementations claiming Level 2 or higher must describe in detail how each requirement is tested. This allows third parties to verify the implementation's conformance.

Rationale

ERC-6734 builds on existing custom token lists, including those used by Arbitrum and Optimism, and the Uniswap Token List Project. By extending and organizing existing specifications, the proposal aims to provide clearer and more secure token lists that are easier for organizations outside Web3, including conventional companies and financial institutions, to adopt.

Why JSON-LD is used

ERC-6734 adopts JSON-LD (JSON Linked Data) for representing token lists. JSON-LD facilitates integration with standards and concepts such as self-sovereign identity, W3C Decentralized Identifiers (DIDs), and W3C Verifiable Credentials.

This provides several benefits.

Benefit Description
Interoperability Tokens and issuers can be identified consistently across Layer 1, Layer 2, and sidechain networks.
Existing tools Tools supporting JSON-LD and W3C DIDs can be reused.
Semantic clarity Referencing recognized data properties from schema.org clarifies the meaning of individual terms.

Even when blockchains use different token lists, a shared vocabulary and schema allow applications to interpret data consistently.

Security considerations

Protection against malicious URIs

URIs may point to malicious websites or untrusted resources. Implementers should therefore take the following precautions.

  • Verify that the data sources identified by URIs are trustworthy.
  • Verify the accuracy and integrity of token list contents, including addresses and token information.

Because the specification focuses on a data schema, it does not prescribe specific countermeasures against attacks that exploit the visual appearance of characters, such as homoglyph attacks or the text-rendering issues illustrated by CVE-2021-42574. Implementations still need to consider these risks.

Data privacy

The standard does not mandate compliance with a particular country's or region's privacy laws or regulations. Implementers are responsible for how data is handled and stored and must comply with applicable laws in their jurisdictions and target markets, such as GDPR where applicable.

Operational precautions

The standard does not require any particular application, tool, or library. Implementers should conduct appropriate due diligence on the software and libraries they use.

  • Verify library reliability and maintenance status.
  • Check external dependencies for known vulnerabilities.
  • Apply appropriate version management and signature verification.

These measures help reduce operational security risks.

Internationalization and localization

For multilingual environments, the specification recommends following the W3C best practices described in Strings on the Web: Language and Direction Metadata. The purpose is to attach appropriate metadata to text data on the Web.

Item Description
Language identification Explicitly identifies the language of each string.
Text direction Specifies text direction, such as left-to-right (LTR) or right-to-left (RTL).

This supports consistent display and processing across different cultural and linguistic environments.

Citation

Kelvin Fichter (@smartcontracts), Andreas Freund (@Therecanbeonlyone1969), Pavel Sinelnikov (@psinelnikov), "ERC-6734: L2 Token List [DRAFT]," Ethereum Improvement Proposals, no. 6734, March 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-6734.

Conclusion

This article covered ERC-6734, a proposal for a common data standard that enables consistent identification of tokens across blockchains.

If you have questions, feel free to reach out via Twitter DM.

Twitter @cardene777

I also publish on the following platforms.

https://chaldene.net/