private/request_vault_deposit
Changed onSubmits a signed deposit action from the user's source subaccount and enqueues it in the vault's pending-deposit queue for the curator to settle. Inputs are the target vault subaccount, the deposit asset, and the amount as a decimal string. Returns an acknowledgement with the queued request; requires the user-deposit permission.
Request
- Base URLhttps://api.derive.xyz/v3
- AuthAPI key in header X-DeriveWallet and API key in header X-DeriveTimestamp and API key in header X-DeriveSignature
Request body
Fields common to every signed vault action. They appear alongside each endpoint's action-specific parameters in the same request object.
Deposit amount in the vault's deposit asset, as a decimal string (e.g. "1").
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
0x-prefixed hex of the 65-byte EOA signature.
20-byte Ethereum address as a 0x-prefixed lowercase hex string.
The subaccount the action is signed on; which subaccount applies depends on the specific method — see that method's reference.
Response
Success
Returned by request_vault_deposit / request_vault_withdraw: the id the queued request was assigned (the user's handle for polling / cancelling).
Composite vault request id: (vault_subaccount_id, wallet, vault_nonce)
Useful as a stable dedup key across off-chain and on-chain vault events.
Changes
- info
the endpoint scheme security
DeriveWallet AND DeriveTimestamp AND DeriveSignaturewas added to the API - info
added the media type
application/jsonfor the response with the status
- info