"deposit_to_lake".
Use this endpoint to deposit USDC from an account into a vault. Deposits are idempotent when an idempotency_key is supplied.
Request Body
| Field | Type | Need | Description | Example |
|---|---|---|---|---|
”account” | string | required | Depositor wallet address | 42trU9A5… |
“signature” | string | required | Cryptographic signature | 5J3mBbAH… |
“timestamp” | integer | required | Current timestamp in milliseconds | 1716200000000 |
”lake” | string | required | Vault address | AbCdEfGh123456789… |
“amount” | decimal string | required | Deposit amount in USDC | 1000.00 |
”idempotency_key” | UUID string | optional | Client-generated key to prevent duplicate deposits | 550e8400-e29b-41d4-a716-446655440000 |
”agent_wallet” | string | optional | Agent wallet address | 69trU9A5… |
“expiry_window” | integer | optional | Signature expiry in milliseconds | 30000 |
Response
- Status 200: Deposit successful
| Field | Type | Description |
|---|---|---|
'shares_minted' | decimal string | Number of vault shares minted to the depositor |
- Status 400: Invalid request parameters
- Status 401: Unauthorized access
- Status 409: Duplicate idempotency key
- Status 500: Internal server error