Deposit flow
- Privy approves the vault to spend the specified amount of the wallet’s ERC-20 tokens.
- The vault converts the deposited assets into vault shares at the current share price.
- Shares are split between the depositing wallet and your app’s admin wallet based on the fee percentage configured during setup.
- The operation starts as
pendingand moves toconfirmedonce Privy verifies the transaction onchain.
share_amount in the response is null while the operation is pending. Once confirmed, it reflects the number of shares minted to the depositing wallet. To see the admin wallet’s fee shares, query the admin wallet’s position.
Usage
- REST API
To deposit funds via REST API, make a
POST request to:Parameters
The unique identifier for the vault. Copy this from the Privy Dashboard after deploying a fee wrapper.
Amount to deposit in the token’s smallest unit. For USDC (6 decimals),
"1000000" equals 1 USDC.Wallets with
owner_id present must provide an authorization
signature as a request header for deposit operations.Returns
The operation ID. Use this to poll status with get sweep by ID.
The ID of the wallet that deposited funds.
The ID of the vault receiving the deposit.
The operation type. Always
"deposit" for this endpoint.The current status of the deposit operation.
Amount deposited in the token’s smallest unit.
Vault shares received.
null while the operation is pending.Example
Example response
Next steps
Setup
Deploy a fee wrapper and configure a vault.
Withdraw and claim
Withdraw deposited assets with accrued yield and claim reward incentives.
Manage positions
Query vault positions and track activity with webhooks.

