GET /v2/amplify/calculateWithdrawalFee returns the fee a user would be charged for redeeming a specific offerAmount of shares for a given wantAsset. The backend resolves the account’s configured FeeModule via the indexer and calls calculateOfferFees() on-chain.
Use this endpoint to preview fees in a withdrawal confirmation UI before submitting the order via GET /v2/amplify/withdraw.
The withdrawal endpoint itself already accounts for fees internally — you do not need to call
calculateWithdrawalFee before preparing withdrawal calldata. It exists purely for display.Parameters
Example
- curl
- Node.js
- Python
- Go
- Java