GET
/
api
/
optimism
/
search
/
{searchtext}
curl --location --request GET 'https://api.walletlabels.xyz/api/optimism/search/Uniswap?apikey=demo-api-key-x-00000' \
--header 'Content-Type: application/json'

{
  "data": [
    {   
      "blockchain": "optimism",
      "address_name": "Uniswap",
      "address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
      "label_type": "contract",
      "label_subtype": "decentralized_exchange",
      "label": "Uniswap V2 Factory Contract"
    },
    {  
      "blockchain": "optimism",
      "address_name": "DAI Stablecoin",
      "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
      "label_type": "token",
      "label_subtype": "erc20",
      "label": "DAI ERC20 Token Contract"
    }
    // ... more results ...
  ]
}

Inputs

searchtext
string
required
Specify the term or part of the search term you wish to search for.
apikey
string
required
Your API key for authentication.
limit
string
Specify number of shown results.
offset
string
Specify the starting point in the list of results for pagination. e.g. offset=0, offset=1, etc..

Response

data
array
An array that encapsulates the labels corresponding to the search term provided.
curl --location --request GET 'https://api.walletlabels.xyz/api/optimism/search/Uniswap?apikey=demo-api-key-x-00000' \
--header 'Content-Type: application/json'

{
  "data": [
    {   
      "blockchain": "optimism",
      "address_name": "Uniswap",
      "address": "0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f",
      "label_type": "contract",
      "label_subtype": "decentralized_exchange",
      "label": "Uniswap V2 Factory Contract"
    },
    {  
      "blockchain": "optimism",
      "address_name": "DAI Stablecoin",
      "address": "0x6B175474E89094C44Da98b954EedeAC495271d0F",
      "label_type": "token",
      "label_subtype": "erc20",
      "label": "DAI ERC20 Token Contract"
    }
    // ... more results ...
  ]
}