curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/crypto/estimate-withdrawal-fee \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"internalAccountId": "InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123",
"currency": "USDC",
"cryptoNetwork": "SOLANA_MAINNET",
"amount": 1000000,
"destinationAddress": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
}
'{
"networkFee": 5000,
"networkFeeAsset": "SOL",
"applicationFee": 0,
"totalFee": 5000,
"netAmount": 995000
}Estimate the network and application fees for a cryptocurrency withdrawal from a crypto internal account to an external blockchain address. Use this to show fee information to customers before they initiate a withdrawal.
curl --request POST \
--url https://api.lightspark.com/grid/2025-10-13/crypto/estimate-withdrawal-fee \
--header 'Authorization: Basic <encoded-value>' \
--header 'Content-Type: application/json' \
--data '
{
"internalAccountId": "InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123",
"currency": "USDC",
"cryptoNetwork": "SOLANA_MAINNET",
"amount": 1000000,
"destinationAddress": "7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
}
'{
"networkFee": 5000,
"networkFeeAsset": "SOL",
"applicationFee": 0,
"totalFee": 5000,
"netAmount": 995000
}API token authentication using format <api token id>:<api client secret>
The ID of the crypto internal account to withdraw from.
"InternalAccount:a12dcbd6-dced-4ec4-b756-3c3a9ea3d123"
The currency code of the asset to withdraw (e.g. USDC).
"USDC"
The blockchain network for the withdrawal. Example values: SOLANA_MAINNET, SOLANA_DEVNET, ETHEREUM_MAINNET, POLYGON_MAINNET, TRON_MAINNET.
"SOLANA_MAINNET"
The amount to withdraw in the smallest unit of the currency.
1000000
The blockchain address to withdraw funds to.
"7xKXtg2CW87d97TXJSDpbD5jBkheTqA83TZRuJosgAsU"
Fee estimation returned successfully
The estimated network (gas) fee in the smallest unit of the network fee asset (e.g. lamports for SOL). This is provided for informational purposes to show the raw on-chain cost. Note that this value is denominated in networkFeeAsset, not in the withdrawal currency — it cannot be directly added to applicationFee or compared to totalFee.
5000
The asset used to pay the network fee (e.g. SOL for Solana transactions).
"SOL"
The application fee charged by the platform in the smallest unit of the withdrawal currency. Zero if no application fee applies.
0
The total cost of the withdrawal in the smallest unit of the withdrawal currency. This equals the network fee converted to the withdrawal currency at current rates plus the application fee. This is the amount deducted from the withdrawal in addition to netAmount.
5000
The net amount the recipient will receive after fees, in the smallest unit of the withdrawal currency.
995000
Was this page helpful?