For most use cases, use the unified deposit
workflow which
handles authorization automatically.
Import
Usage
Parameters
Return Type
Returns a discriminated union based on the account’s configuration. UsedepositType or the type guards isStandardDeposit() / isKytDeposit() to narrow.
- Type Definition
- Standard Example
- KYT Example
KYT routing is automatic — the SDK checks
vault.enterpriseConfig.predicatePolicyId and returns the correct variant. Most consumers can ignore depositType and pass the result directly to writeContract.Examples
- Privy
- Wagmi
- Viem
Slippage Configuration
The default slippage is 50 basis points (0.5%). Adjust for volatile conditions:Error Handling
Related
- Deposit Workflow - Unified deposit API
- getVaultsByConfig - Discover account names
- prepareDepositWithPermitTxData - Permit-based deposits
- Deposits Guide - Complete examples