curl --request GET \
--url https://api.example.com/v2/amplify/calculateWithdrawalFee \
--header 'x-api-key: <api-key>'{
"feeAmount": "0.05",
"offerFeePercentage": {
"bps": 25,
"percentage": "0.2500"
},
"flatFee": "1.05"
}Calculates the withdrawal fee the user would be charged for a given offer amount and want asset.
curl --request GET \
--url https://api.example.com/v2/amplify/calculateWithdrawalFee \
--header 'x-api-key: <api-key>'{
"feeAmount": "0.05",
"offerFeePercentage": {
"bps": 25,
"percentage": "0.2500"
},
"flatFee": "1.05"
}API key in format: pxl_<public_id>_
Share amount to withdraw (base units decimal string)
"1000000000000000000"
ERC-20 token address the user wants to receive
"0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48"
BoringVault contract address (0x + 40 hex chars)
"0xbbbb000000000000000000000000000000000001"
EVM chain ID
1
Fee amount charged for the given offer and want asset.
"0.05"
Offer fee percentage in bps.
Show child attributes
Flat fee charged on every withdrawal for the given offer and want asset. Denominated in the want asset.
"1.05"