Skip to content

Support ENS name resolution in address parameters #6

@0xtus

Description

@0xtus

Description

Allow tools that accept addresses to also accept ENS names (e.g., vitalik.eth).

Current behavior

Address parameters accept:

  • Ethereum addresses (0x1234...)
  • Participant names from the trust registry ("WeatherOracle")
  • Self-reference ("me")
  • Index reference ("#1", "#2")

Proposed behavior

Also accept ENS names like vitalik.eth, resolving them via the ENS registry on L1.

Suggested approach

  1. Detect .eth suffix in the address resolver (src/utils/)
  2. Use viem's getEnsAddress to resolve
  3. Cache resolutions to avoid repeated lookups
  4. Fall through to existing resolution if ENS fails

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions