Overview
Some vaults use async deposits, meaning the deposited funds are not immediately active. Instead, they enter a pending state and must be claimed once the vault processes them. The claim-deposit endpoint generates the transaction to finalize these pending deposits.Deposit (already completed)
The user previously called deposit and the vault queued the funds for processing.
Create claim-deposit action
Call
POST /v1/actions/claim-deposit/{opportunityId} to generate the claim transaction.This endpoint is only relevant for opportunities with async deposits (e.g., Mellow, Lagoon). For standard vaults, deposits are processed immediately and no claim is needed.
Create Claim Deposit
Generate the transaction to claim a pending async deposit. Unlike the deposit endpoint, this is a simplified request that only requires the user’s wallet address and distributor ID — no token or amount is needed since the vault already holds the pending deposit information.The unique identifier of the opportunity with the pending deposit. Get this from the Opportunities API.
The user’s EVM wallet address. Must belong to a registered Turtle member and must have a pending deposit in this opportunity.
Your distributor ID for attribution tracking.
Transaction Object
Each transaction in thetransactions array contains:
Transaction type, e.g.
approve, deposit, withdraw, claimDeposit, cancelDeposit.The raw transaction data to sign and submit.
Target contract address.
Encoded calldata (hex string with
0x prefix).Value in wei. Usually
"0" for token interactions; non-zero for native token deposits.Estimated gas limit.
Chain ID for the transaction.
Human-readable description of what this transaction does.
Optional metadata for swap transactions, including provider info, amount out, gas estimate, and route details.
Complete Example
Error Handling
User is not a Turtle member
User is not a Turtle member
Distributor not found
Distributor not found
Status Code: 404 Not FoundSolution: Verify your distributor ID is correct and active.
Opportunity not found
Opportunity not found
Related Endpoints
- Deposit - Generate the initial deposit transactions
- Cancel Deposit - Cancel a pending async deposit instead of claiming it
- Opportunities API - Discover available opportunities and their IDs

