Lend

Redeem vault fees with an EVM account

Changed on

Redeems every vault share held by the vault's fee recipient EVM account for the vault's underlying asset (e.g. USDC). The account must be the vault's fee recipient. CDP periodically distributes each vault's accrued fees to its fee recipient as vault shares. This API redeems the account's full share balance, including any shares from the account's own deposits into the vault, so use a dedicated fee recipient account. The account signs an EIP-2612 permit over its vault shares, and the share approval and redemption are executed in a single transaction. For fee recipients that are EVM Smart Accounts, use redeemVaultFeesWithEvmSmartAccount instead.

post/v2/evm/accounts/{address}/lend/redeem-fees

Request

  • Base URL
    https://api.cdp.coinbase.com/platform
  • Auth
    HTTP bearer

Path parameters

address, string required

The 0x-prefixed address of the EVM account that is the vault's fee recipient.

Headers

X-Wallet-Auth, string required

A JWT signed using your Wallet Secret, encoded in base64. Refer to the Generate Wallet Token section of our Authentication docs for more details on how to generate your Wallet Token.

X-Idempotency-Key, string

An optional string request header for making requests safely retryable. When included, duplicate requests with the same key will return identical responses. Refer to our Idempotency docs for more information on using idempotency keys.

Request body

EoaVaultRedeemFeesRequest required

A request to redeem the fee shares held by the vault's fee recipient EVM account for the vault's underlying asset (e.g. USDC). The account signs an EIP-2612 permit over its vault shares, and the share approval and redemption are executed in a single transaction.

Example request

{
  "vaultId": "vault_019f5f10-096a-7a23-86df-f479650d813f",
  "maxSlippageBps": 100
}

Response

Successfully broadcast the fee redemption.

EoaVaultRedeemFeesResponse required

The result of a vault fee redemption from an EVM account after broadcast.

transactionHash, string required

The hash of the broadcast fee redemption transaction, as a 0x-prefixed hex string.

Example response

{
  "transactionHash": "0xf8f98fb6726fc936f24b2007df5cb20e2b8444ff3dfaa2a929335f432a9be2e7"
}

Changes

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    • warning

      added the new policy_not_applicable enum value to the errorType response property for the response status

    7 more changes in this revision