Lend

List lend positions

Changed on

Lists non-zero lend positions for an EVM account or EVM Smart Account in the project. Each position reports the account's vault share balance and its current value in the vault's underlying asset. When vaultIds is omitted, only vaults where the address received shares through a Lend deposit are listed. Shares received any other way are not discovered, including transfers, deposits made outside the Lend deposit APIs, and fee shares CDP distributes to a vault's fee recipient, so an empty list does not mean the address holds no shares. Supply vaultIds to read specific project-owned vaults. Positions are ordered by vault ID. pageSize defaults to 20 and must be between 1 and 100. Keep the address and vault filter unchanged when following nextPageToken. Each page fetches fresh balances, so positions and balances may change between page requests as deposits, withdrawals, or yield accrual occur.

get/v2/lend/positions

Request

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

Query parameters

address, string required

The 0x-prefixed address of the EVM account or EVM Smart Account to list lend positions for.

vaultIds, VaultId[]

Filter positions to these project-owned vaults. Provide 1 to 100 unique, comma-separated vault IDs. Omit to list positions in the vaults discovered for the address.

[
  "vault_019f5f10-096a-7a23-86df-f479650d813f"
]
pageSize, integer

The number of resources to return per page.

pageToken, string

The token for the next page of resources, if any.

Response

Successfully listed lend positions.

intersection required
object

Non-zero positions in the vaults discovered for the address, or in the vaults named by vaultIds.

lendPositions, LendPosition[] required

The lend positions on this page. Empty when no matching positions remain.

Example response

{
  "lendPositions": [
    {
      "vaultId": "vault_019f5f10-096a-7a23-86df-f479650d813f",
      "network": "base",
      "underlyingAsset": "usdc",
      "vaultShares": "1",
      "assetBalance": "1.025"
    }
  ],
  "nextPageToken": "eyJsYXN0X2lkIjogImFiYzEyMyIsICJ0aW1lc3RhbXAiOiAxNzA3ODIzNzAxfQ=="
}

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

    5 more changes in this revision