{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/lightspark/main/json-schema/lightspark-estimate-crypto-withdrawal-fee-request-schema.json",
  "title": "EstimateCryptoWithdrawalFeeRequest",
  "x-generated": "2026-10-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lightspark-cross-currency-transfers-api-openapi.yml#/components/schemas/EstimateCryptoWithdrawalFeeRequest",
  "type": "object",
  "required": [
    "internalAccountId",
    "currency",
    "cryptoNetwork",
    "amount",
    "destinationAddress"
  ],
  "properties": {
    "internalAccountId": {
      "type": "string",
      "description": "The ID of the crypto internal account to withdraw from."
    },
    "currency": {
      "type": "string",
      "description": "The currency code of the asset to withdraw (e.g. USDC)."
    },
    "cryptoNetwork": {
      "type": "string",
      "description": "The blockchain network for the withdrawal. Example values: SOLANA, ETHEREUM, BASE, POLYGON, SPARK, LIGHTNING, BITCOIN."
    },
    "amount": {
      "type": "integer",
      "description": "The amount to withdraw in the smallest unit of the currency."
    },
    "destinationAddress": {
      "type": "string",
      "description": "The blockchain address to withdraw funds to."
    }
  }
}