Skip to main content
The Amplify SDK provides helper functions that prepare transaction data for vault operations. All functions require SDK initialization before use.

Deposits

Unified deposit API with automatic permit/approval detection. Handles all deposit scenarios with a single entry point.

Withdraw

Prepare withdrawal transactions to redeem vault shares for underlying assets.

Function Naming Convention

All transaction preparation functions use the *TxData suffix: Use the Unified Deposit API (prepareDepositAuthorization + prepareDeposit) for the best developer experience. It automatically:
  • Detects if the token supports EIP-2612 permits
  • Checks existing allowances
  • Routes to the optimal authorization flow
  • Provides type-safe discriminated unions for handling each case
See Deposits for complete documentation and examples.