> ## Documentation Index
> Fetch the complete documentation index at: https://test-184b3b57.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Build Mint Transaction

> Returns an unsigned transaction for minting an NFT



## OpenAPI

````yaml openapi/onchainkit.yaml post /BuildMintTransaction
openapi: 3.0.0
info:
  title: OnchainKit API
  version: 1.0.0
  description: API reference for OnchainKit functionality
servers:
  - url: https://api.base.org/v1
    description: Base API server
security: []
paths:
  /BuildMintTransaction:
    post:
      tags:
        - Mint
      summary: Build Mint Transaction
      description: Returns an unsigned transaction for minting an NFT
      operationId: buildMintTransaction
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/BuildMintTransactionParams'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BuildMintTransactionResponse'
        '400':
          description: Bad request - Invalid parameters
        '401':
          description: Unauthorized - Invalid API key
        '404':
          description: Contract not found
        '422':
          description: Unprocessable Entity - Invalid transaction parameters
components:
  schemas:
    BuildMintTransactionParams:
      type: object
      required:
        - mintAddress
        - takerAddress
        - tokenId
        - quantity
        - network
      properties:
        mintAddress:
          type: string
          description: The NFT contract address to mint from
          example: 0x123...
        takerAddress:
          type: string
          description: The address of the NFT recipient
          example: 0x456...
        tokenId:
          type: string
          description: The token ID of the NFT to be minted
          example: '1'
        quantity:
          type: integer
          description: The number of NFTs to mint
          example: 1
        network:
          type: string
          description: The network to mint on
          example: networks/base-mainnet
    BuildMintTransactionResponse:
      type: object
      properties:
        to:
          type: string
          description: The contract address to send the transaction to
        data:
          type: string
          description: The encoded transaction data
        value:
          type: string
          description: The amount of native currency to send with the transaction
        gasLimit:
          type: string
          description: The gas limit for the transaction

````