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

# Calculate crypto transfer fee



## OpenAPI

````yaml /api-reference/openapi.json get /api/v1/transfers/crypto/calculate-fee
openapi: 3.1.0
info:
  title: FossaPay API
  description: >-
    FossaPay API for checkout wallets, master-wallet payouts, customer
    management, NGN wallets, crypto wallets, transfers, fees, banks, and
    webhooks.
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api-production.fossapay.com
    description: Production server
security:
  - ApiKeyAuth: []
paths:
  /api/v1/transfers/crypto/calculate-fee:
    get:
      tags:
        - Crypto Transfers
      summary: Calculate crypto transfer fee
      operationId: CryptoTransfersController_calculateFee
      parameters:
        - name: amount
          in: query
          required: true
          schema:
            type: number
            exclusiveMinimum: 0
        - name: currency
          in: query
          required: true
          schema:
            type: string
            enum:
              - usdc
              - usdt
              - sol
      responses:
        '200':
          description: Transfer fee calculated successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CryptoFeeQuoteResponse'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ApiError'
components:
  schemas:
    CryptoFeeQuoteResponse:
      type: object
      required:
        - status
        - statusCode
        - message
        - data
      properties:
        status:
          type: boolean
        statusCode:
          type: integer
        message:
          type: string
        data:
          type: object
          additionalProperties: true
      additionalProperties: true
    ApiError:
      type: object
      properties:
        status:
          oneOf:
            - type: string
            - type: boolean
        statusCode:
          type: integer
        message:
          type: string
        error:
          type: string
        code:
          type: string
        errors:
          type: object
          additionalProperties: true
      additionalProperties: true
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````