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?
- canMint - Specifies whether a minter address has permission to mint a subname. If this is false, see validationErrors for the reason.
- estimatedPriceEth - The price for minting a subname, set by the listing owner.
- estimatedFeeEth - The minting fee for minting a subname.
- validationErrors - If the subname cannot be minted, the validation errors will specify the reason. There could be different reasons, such as: Listing has expired, minter is not whitelisted, minter doesn’t have a required token in case listing uses token gated access, etc.
MintingValidationErrorType
Validation Errors are a standard set of errors that are present when a given subname cannot be minted.Error | Description |
---|---|
SUBNAME_TAKEN | Subname not available |
MINTER_NOT_TOKEN_OWNER | Listing uses Token Gated Access and minter does not hold required token |
MINTER_NOT_WHITELISTED | Listing uses Whitelisting feature and minter is not whitelisted |
LISTING_EXPIRED | Listing uses Deadline feature with expiry set |
SUBNAME_RESERVED | A subname label is reserved and not mintable |