🥷
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. Namespace Client (deprecated)

GetMintDetails

GetMintDetails function

GetMintDetails function returns data with details about minting a single/specific subname under a listed ENS name.

Usage

index.ts
const listedName = await NamespaceClient.getListedName("example.eth", sepolia.id);
const minterAddress = "0x3E1e131E7e613D260F809E6BBE6Cbf7765EDC77f";
const subnameLabel = "hello";

const mintDetails = await NamespaceClient
        .getMintDetails(listedName, subnameLabel, minterAddress);

Return Type

The Data returned from this function answers the questions:

  • What is the total price of minting a given subname

  • Is minter address allowed to mint a subname

  • Is minter address required to perform verification in order to mint a subname

export interface MintDetails {
  canMint: boolean;
  estimatedPrice: number;
  estimatedFee: number;
  validationErrors: MintingValidationErrorType[];
  isStandardFee: boolean;
}
  1. canMint - specifies whether a minter address has permission to mint a subname, will be false in case the listing uses whitelist functionality and the minter address is not whitelisted

  2. estimatedPrice - The price for minting a subname, set by listing owner

  3. estimatedFee - The minting fee for minting a subname

  4. validationErrors - If the subname cannot be minted, the validation errors will specify the reason. There could be different reasons, such as: 1. Listing has expired. 2. Minter is not whiteslited, 3. Minter doesn't have a required token in case listing uses token gated access etc.

Mint Validation Errors

PreviousGetListedNameNextGetMintTransactionParameters

Last updated 11 days ago