Skip to main content
Prepares transaction data for a deposit using an EIP-2612 permit signature. This enables single-transaction deposits without a separate approval step.
For most use cases, use the unified deposit workflow which handles authorization automatically.

Import

Usage

Parameters

Return Type

Returns a discriminated union based on account configuration, matching the same flat shape as prepareDepositTxData().
As of v0.5.2, the return structure is flatabi, functionName, and args are top-level properties, matching prepareDepositTxData(). You can spread the result directly into writeContract.

Examples

Permit Support

Not all tokens support EIP-2612 permits. Use prepareDepositAuthorization() to check:
Smart contract wallets (like Privy Smart Wallets or Safe) cannot sign permits. Use the approval flow with transaction batching instead.

Error Handling