Earn withdraw
Changed onWithdraw assets from an ERC-4626 vault.
Request
- Base URLhttps://api.privy.io
- URLhttps://api.privy.io/v1/wallets/{wallet_id}/earn/ethereum/withdraw
- AuthHTTP basic
Path parameters
ID of the wallet.
Headers
ID of your Privy app.
Request authorization signature. If multiple signatures are required, they should be comma separated.
Request expiry. Value is a Unix timestamp in milliseconds representing the deadline by which the request must be processed.
Idempotency keys ensure API requests are executed only once within a 24-hour window.
Request body
Example request
{
"vault_id": "cm7oxq1el000e11o8iwp7d0d0",
"amount": "1.5"
}Response
Earn withdraw initiated successfully.
Example response
{
"steps": [
{
"gas_credits_charged": {
"value": "100.00",
"currency": "usd"
}
}
]
}Changes
- breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - breaking
the response property
///became nullable for the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
added the optional property
///to the response with the status - info
response property
steps/items/oneOf[subschema #1: EVMTransactionWalletActionStep]/gas_credits_charged_usddeprecated - info
response property
steps/items/oneOf[subschema #2: EVMUserOperationWalletActionStep]/gas_credits_charged_usddeprecated - info
response property
steps/items/oneOf[subschema #3: SVMTransactionWalletActionStep]/gas_credits_charged_usddeprecated - info
response property
steps/items/oneOf[subschema #4: TVMTransactionWalletActionStep]/gas_credits_charged_usddeprecated
- breaking
- info
added the optional property
///to the response with the status
- info