Skip to main content
Indexer has methods for fetching single or multiple L2 subnames.

1. getL2Subname

The getL2Subname method retrieves a single subname registered on an L2 chain.

Usage

  • chainId: The id of the target L2 network (e.g., base(8453), optimism(10), baseSepolia(84532))
  • nameOrNamehash: Name or namehash representation of an ENS name

Return Type

Field Description

2. getL2Subnames

The getL2Subnames method allows you to retrieve a paginated list of Layer 2 (L2) subnames based on various filter criteria.

Usage

Query Parameters

Return Type