Skip to main content
Use getMintDetails to check whether a wallet can mint a subname and to retrieve the estimated price and fee.

Usage

MintDetailsResponse

The data returned from this function answers the questions:
  • What is the total price of minting a given subname?
  • Is the minter address allowed to mint a subname?
  1. canMint - Specifies whether a minter address has permission to mint a subname. If this is false, see validationErrors for the reason.
  2. estimatedPriceEth - The price for minting a subname, set by the listing owner.
  3. estimatedFeeEth - The minting fee for minting a subname.
  4. validationErrors - Lists the exact reason the mint cannot proceed, such as an unavailable label, expired listing, missing whitelist entry, or unmet token requirement.

MintingValidationErrorType

Validation Errors are a standard set of errors that are present when a given subname cannot be minted.