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

# Mint USD testnet tokens

> 
    Prepares a transaction to mint USD testnet tokens (e.g., USDC) on supported chains.
    This is a testnet-only function for development and testing purposes.
    Returns transaction data that the frontend can execute via the user's wallet.
  



## OpenAPI

````yaml post /mint-usd
openapi: 3.0.3
info:
  title: Token Layer API
  version: 1.0.0
  description: |2-

          Token Layer is an omnichain token trading platform where users can create and trade tokens across multiple chains.

          This API provides comprehensive access to token operations, trading, earnings,
          blockchain transactions, and portfolio management.

          ## Base URL
          All endpoints are accessed via: `https://api.tokenlayer.network/{endpoint}`

          ## Authentication
          Most endpoints require authentication using an JWT token or API key passed as a Bearer token in the Authorization header.

          ## Rate Limiting
          API calls are rate limited per user. Please implement appropriate backoff strategies.
        
  contact:
    name: Token Layer API Support
    url: https://app.tokenlayer.network
servers:
  - url: https://api.tokenlayer.network/functions/v1
    description: Production server
  - url: https://api.tokenlayer.network/functions/v1
    description: Staging server
security: []
tags:
  - name: Tokens
    description: Token creation, browsing, search, trading, and price operations
  - name: Transactions
    description: Blockchain transactions (send, tip, ownership checks)
paths:
  /mint-usd:
    post:
      tags:
        - Utilities
        - Transactions
      summary: Mint USD testnet tokens
      description: |2-

            Prepares a transaction to mint USD testnet tokens (e.g., USDC) on supported chains.
            This is a testnet-only function for development and testing purposes.
            Returns transaction data that the frontend can execute via the user's wallet.
          
      operationId: mintUSD
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MintUSDRequest'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MintUSDResponse'
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized - Invalid or missing authentication
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - BearerAuth: []
components:
  schemas:
    MintUSDRequest:
      type: object
      properties:
        chainSlug:
          $ref: '#/components/schemas/ChainSlug'
        amount:
          type: integer
          minimum: 0
          exclusiveMinimum: true
          default: 100000
          description: Amount of USD to mint (defaults to 100,000)
          example: 100000
        userAddress:
          type: string
          pattern: ^0x[a-fA-F0-9]{40}$
          description: User wallet address to mint tokens to
          example: '0x742d35Cc6634C0532925a3b844Bc9e7595f0bEb'
      required:
        - chainSlug
        - userAddress
    MintUSDResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        transaction:
          type: object
          properties:
            to:
              type: string
              description: Contract address to send transaction to
              example: '0x3Ea905bE91e23876a0DAd8ee62fBBee63B7FBDeb'
            data:
              type: string
              description: Encoded transaction data
              example: 0x449a52f8...
            value:
              type: string
              description: Transaction value in wei
              example: '0'
            gasLimit:
              type: string
              description: Gas limit for the transaction
              example: '100000'
            chainType:
              type: string
              description: Chain type (evm or solana)
              example: evm
            chainId:
              type: string
              description: Chain ID in Privy format
              example: eip155:84532
          required:
            - to
            - data
            - value
            - gasLimit
            - chainType
            - chainId
      required:
        - success
        - transaction
    Error:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          type: string
      required:
        - success
        - error
      description: Error response
    ChainSlug:
      type: string
      enum:
        - solana
        - solana-devnet
        - arbitrum
        - base
        - base-sepolia
        - avalanche
        - op-bnb
        - bnb
        - bnb-testnet
        - ethereum
        - monad
        - unichain
        - unichain-testnet
        - abstract
        - polygon
        - zksync
        - zksync-testnet
      description: >-
        Blockchain identifier. Supported chains: solana, solana-devnet,
        arbitrum, base, base-sepolia, avalanche, op-bnb, bnb, bnb-testnet,
        ethereum, monad, unichain, unichain-testnet, abstract, polygon, zksync,
        zksync-testnet
      example: base-sepolia
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: JWT token or API key

````