🥷
Namespace
  • [ Introduction ]
    • ENS
    • Namespace
  • Official Links
  • [ Dapps ]
    • Overview
    • Onchain Subs (App)
      • Search & Register
      • Wizard
        • Listing an ENS Name
        • Features List
      • ENS Widget
      • Farcaster Frames
        • Default Frame
        • Custom Frame
    • Offchain Subs (DevPortal)
      • Subname create/manage
      • Resolver set
      • API keys
  • How-to Guides and Demos
  • [ Dev Docs ]
    • SDK
      • Offchain Manager
        • Installation
        • Generate API key
        • Create or Update Subname
        • DeleteSubname
        • IsSubnameAvailable
        • GetFilteredSubnames
        • AddressRecords
          • ChainName
        • TextRecords
        • DataRecords
      • Indexer Manager
        • Installation
        • Methods
        • GetL2Subname
        • GetL2Subnames
      • Mint Manager
        • Installation
        • GetMintDetails
        • GetMintTransactionParameters
        • IsSubnameAvailable
        • How To Mint L1 & L2 subname via mint-manager
      • Namespace Client (deprecated)
        • Installation
        • GetListedName
        • GetMintDetails
        • GetMintTransactionParameters
        • IsSubnameAvailable
        • GenerateAuthToken
    • APIs
      • Offchain Manager
      • Mint Manager
    • Infrastructure
      • Namespace L2 Subnames
  • [ ecosystem ]
    • Use Cases
  • [ Jobs ]
    • 🧑‍💻 Full-Stack Dev
    • 🥷 Dev-Rel Lead
    • 💼 BD Lead
Powered by GitBook
On this page
  • Usage
  • Return Type
  1. [ Dev Docs ]
  2. SDK
  3. Indexer Manager

GetL2Subname

GetL2Subname method allows you to get one L2 subname.

Usage

client.getL2Subname(
  network: "base",
  namehash: "0x1782c80e7fa072bbad90e4d99ab60faaf3a667e1cc5f82d6dc1ddd2fcd63f324"
);

Return Type

export interface L2SubnameResponse {
  name: string;
  namehash: string;
  label: string;
  parentNamehash: string;
  owner: string;
  texts: Record<string, string>;
  addresses: Record<string, string>;
  contenthash?: string;
  chainId: number;
  expiry: number;
  mintTransaction?: {
    price: number;
    paymentReceiver: string;
  };
}
  1. name - the name of the subname

  2. namehash - the hash of the subname

  3. label - the label of the subname

  4. parentNamehash - the hash of the parent name

  5. owner - the owner of the subname

  6. texts - a text records associated with the subname

  7. addresses - a address records associated with the subname

  8. contenthash - the contenthash of the subname

  9. chainId - the chain ID where the subname is registered

  10. expiry - the expiry date of the subname

  11. mintTransaction - details of the mint transaction

    • price - the price of the mint transaction

    • paymentReceiver - the receiver of the payment

PreviousMethodsNextGetL2Subnames