End User Accounts

List lend positions

Changed on

Lists non-zero lend positions held by an end user's EVM address, which can be an externally owned account or a smart account belonging to the end user. Only positions in vaults belonging to the authenticated project are returned. When vaultIds is omitted, discovery uses vaults previously tracked for the address through a successful deposit-calldata request. Deposits or share transfers performed outside that flow do not automatically register new vaults for discovery. 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. Positions and balances may change between page requests as deposits, withdrawals, or yield accrual occur.

get/v2/embedded-wallet-api/end-users/{userId}/evm/{address}/lend/positions

Request

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

Path parameters

userId, string required

The ID of the end user.

address, string required

The EVM address whose lend positions are requested. Must belong to the end user.

Query parameters

vaultIds, VaultId[]

Filter positions to these project-owned vaults. Provide 1 to 100 unique, comma-separated vault IDs. Omit to use tracked discovery 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.

projectID, string
Example:8e03978e-40d5-43e8-bc93-6894a57f9324

The ID of the CDP Project. Required for end users authenticated using custom auth (i.e. a non-CDP JWT provider).

Response

Successfully listed lend positions.

intersection required
object

The account's non-zero lend positions in project-owned vaults.

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