> ## Documentation Index
> Fetch the complete documentation index at: https://docs.namespace.ninja/llms.txt
> Use this file to discover all available pages before exploring further.

# Estimate mint params

> Get estimated minting parameters and validation results.



## OpenAPI

````yaml /openapi/mint-openapi.json GET /api/v1/mint/estimate
openapi: 3.0.0
info:
  title: Namespace Mint Manager API
  description: >-
    API for managing onchain subname minting on L1 and L2. Supports estimation,
    validation, and signed parameter generation.
  version: '1.0'
  contact:
    name: Namespace Dev Team
    url: https://namespace.ninja
    email: cap@namespace.ninja
  termsOfService: https://namespace.ninja/tos
servers:
  - url: https://mint-manager.namespace.ninja
    description: Production
  - url: https://staging.mint-manager.namespace.ninja
    description: Staging
security: []
tags: []
paths:
  /api/v1/mint/estimate:
    get:
      tags:
        - Mint Manager
      summary: Estimate mint params
      description: Get estimated minting parameters and validation results.
      operationId: MintController_getEstimatedParameters
      parameters:
        - name: parentName
          required: true
          in: query
          description: The parent name (e.g., domain) under which the label will be minted.
          schema:
            minLength: 3
            maxLength: 100
            example: example.eth
            type: string
        - name: label
          required: true
          in: query
          description: The label or subname to be minted under the parent name.
          schema:
            minLength: 1
            maxLength: 100
            example: subname
            type: string
        - name: minterAddress
          required: true
          in: query
          description: Ethereum address of the minter.
          schema:
            example: '0x1234567890abcdef1234567890abcdef12345678'
            type: string
        - name: isTestnet
          required: false
          in: query
          description: Indicates whether the operation is on a sepolia testnet.
          schema:
            example: true
            type: boolean
      responses:
        '200':
          description: Estimated price, fee, and validation status for requested subname.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MintEstimateResponse'
        '400':
          description: Bad Request. Invalid parameters or validation failed.
          content:
            application/json:
              schema:
                example:
                  statusCode: 400
                  message: Invalid parameters or validation failed.
                  error: Bad Request
        '404':
          description: Listing not found.
          content:
            application/json:
              schema:
                example:
                  statusCode: 404
                  message: Listing not found.
                  error: Not Found
        '500':
          description: Internal server error.
          content:
            application/json:
              schema:
                example:
                  statusCode: 500
                  message: Internal server error.
                  error: Internal Server Error
components:
  schemas:
    MintEstimateResponse:
      type: object
      properties:
        canMint:
          type: boolean
          description: Indicates if the subname can be minted.
          example: true
        estimatedPriceEth:
          type: number
          description: Estimated price in ETH for the minting operation.
          example: 0.01
        estimatedFeeEth:
          type: number
          description: Estimated protocol/platform fee in ETH.
          example: 0.002
        isStandardFee:
          type: boolean
          description: Indicates whether the estimated fee is a standard fixed fee.
          example: true
        validationErrors:
          type: array
          description: List of validation error types if minting is not allowed.
          example:
            - SUBNAME_TAKEN
            - MINTER_NOT_WHITELISTED
          items:
            type: string
            enum:
              - SUBNAME_TAKEN
              - MINTER_NOT_TOKEN_OWNER
              - MINTER_NOT_WHITELISTED
              - LISTING_EXPIRED
              - SUBNAME_RESERVED
              - VERIFIED_MINTER_ADDRESS_REQUIRED
      required:
        - canMint
        - estimatedPriceEth
        - estimatedFeeEth
        - isStandardFee
        - validationErrors

````