Onchain Data

List token addresses for account

Changed on

Retrieve all ERC-20 token contract addresses that an account has ever received tokens from. Analyzes transaction history to discover token interactions.

get/v2/data/evm/token-ownership/{network}/{address}

Request

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

Path parameters

network, 'base' | 'base-sepolia' required

The blockchain network to query.

address, string required

The account address to analyze for token interactions.

Response

Token addresses retrieved successfully.

AccountTokenAddressesResponse required

Response containing token addresses that an account has received.

accountAddress, string

The account address that was queried.

tokenAddresses, string[]

List of token contract addresses that the account has received.

totalCount, integer

Total number of unique token addresses discovered.

Example response

{
  "accountAddress": "0x742d35Cc6634C0532925a3b844Bc454e4438f44e",
  "tokenAddresses": [
    "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "0x4200000000000000000000000000000000000006",
    "0x0000000000000000000000000000000000000000"
  ],
  "totalCount": 15
}

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

    1 more change in this revision