Check a wallet’s position
Once Privy confirms a deposit, your app can query the wallet’s holdings using the get position endpoint. Theassets_in_vault field shows the current redeemable value, including accrued yield.
Usage
- REST API
To check a wallet’s position via REST API, make a
GET request to:Parameters
The unique identifier for the vault.
Returns
The vault’s underlying asset, with
address and symbol fields.Total amount deposited into the vault, in the token’s smallest unit.
Total amount withdrawn from the vault, in the token’s smallest unit.
Current redeemable value of the wallet’s vault shares, including accrued yield.
Number of vault shares held by the wallet.
Example
Example response
Display balances
| Field | What it represents | How to use it |
|---|---|---|
assets_in_vault | Current redeemable value including yield | Show this as the user’s current balance |
total_deposited | Sum of all deposits | Use as the user’s cost basis |
total_withdrawn | Sum of all withdrawals | Subtract from total_deposited for net contributions |
shares_in_vault | Raw vault shares held | Rarely shown to users — use assets_in_vault instead |
Calculate earned yield
To display how much yield a wallet has earned:assets_in_vault is 850 USDC:
All amounts are in the token’s smallest unit. For USDC (6 decimals), divide by
10^6 before
displaying to users. For example, 1050000 equals 1.05 USDC.Get vault details
Use the get vault details endpoint to retrieve vault-level information like current APY, TVL, and available liquidity.- REST API
Make a
GET request to:Parameters
The unique identifier for the vault.
Returns
The vault’s unique identifier.
Display name of the vault.
The protocol powering the vault (e.g.
"morpho").The onchain address of the vault contract.
The address of the vault’s underlying token.
Chain identifier in CAIP-2 format.
Current APY in basis points (e.g.
500 = 5%).Total value locked in the vault in USD.
Liquidity available for withdrawal in USD.
Example
Example response
Track activity with webhooks
Privy emits webhooks when vault operations complete onchain. Subscribe to earn events from the Configuration > Webhooks page in the Privy Dashboard to keep your app synchronized without polling.| Event | Fired when |
|---|---|
yield.deposit.confirmed | Privy confirms a vault deposit onchain |
yield.withdraw.confirmed | Privy confirms a vault withdrawal onchain |
yield.claim.confirmed | Privy confirms a reward claim onchain |
For full webhook setup instructions and payload schemas, see the webhooks
overview.
Next steps
Setup
Deploy a fee wrapper and configure a vault.
Deposit funds
Deposit assets from a wallet into a yield vault.
Withdraw and claim
Withdraw deposited assets with accrued yield and claim reward incentives.

