List Owned Tokens

List Owned Tokens

Path

  • GET /tokens/ownedBy

Description

  • Retrieves a list of tokens owned by a specified wallet address.

Parameters

  • address: The wallet address of the user (query parameter).

Request Example

GET /tokens/ownedBy?address=0x456def...

Response Example

{
  "ownedTokens": [
    {
      "tokenId": "0x123abc...",
      "ticker": "ETH",
      "amount": 100
    },
    // ... more tokens
  ]
}

Error Responses

  • 400 Bad Request: If the wallet address is not provided or invalid.

  • 500 Internal Server Error: For server-related issues.

Last updated