Initialization
initAmplifySDK
Initialize the SDK with your API key before using any other functions.
fetchSupportedAssets
Fetch supported tokens and vault configurations for a yield type.
Deposits
Deposit Workflow
The unified deposit API with
prepareDepositAuthorization and prepareDeposit.prepareDepositTxData
Prepare transaction data for a standard deposit after approval.
prepareDepositWithPermitTxData
Prepare transaction data for a permit-based deposit (single transaction).
Withdrawals
prepareWithdrawalAuthorization
Check approval requirements and prepare withdrawal authorization.
prepareWithdrawal
Prepare transaction data through the unified withdrawal wrapper.
prepareWithdrawOrderTxData
Build low-level WithdrawQueue order transaction data.
prepareApproveWithdrawOrderTxData
Build low-level approval transaction data for vault shares.
Display Helpers
Display Helpers
UI helper functions for showing vault APY, TVL, fees, share calculations, and withdrawal history.