List Tokens By Address

Through this endpoint customers can obtain token data by providing an attribute - address. The information that can be returned can include the contract address, the token symbol, type and balance.

List of Results - This endpoint returns a list of data of the same type which means pagination is applicable. GET /blockchain-data/{blockchain}/{network}/addresses/{address}/tokens

Path Parameters

  • Required
    blockchain string

    Represents the specific blockchain protocol name, e.g. Ethereum, Ethereum Classic, etc.

    Example : ethereum
    Possible Values : ethereum ethereum-classic binance-smart-chain
  • Required
    network string

    Represents the name of the blockchain network used; blockchain networks are usually identical as technology and software, but they differ in data, e.g. - "mainnet" is the live network with actual data while networks like "testnet", "ropsten" are test networks.

    Example : ropsten
    Possible Values : mainnet ropsten mordor testnet
  • Required
    address string

    Represents the public address, which is a compressed and shortened form of a public key.

    Example : 0x033ef6db9fbd0ee60e2931906b987fe0280471a0

Query parameters

  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

  • Optional
    limit integer

    Defines how many items should be returned in the response per page basis.

    Default : 50
    Example : 50
  • Optional
    offset integer

    The starting index of the response items, i.e. where the response should start listing the returned items.

    Default : 0
    Example : 10

Response schema

200 400 401 402 403 409 415 422 429 500
HTTP Status Code: 200
Content-Type: application/json

The request has been successful.

  • Object :

  • Required
    apiVersion string

    Specifies the version of the API that incorporates this endpoint.

    Example : 2.0
  • Required
    requestId string

    Defines the ID of the request. The requestId is generated by Crypto APIs and it's unique for every request.

    Example : 601c1710034ed6d407996b30
  • Optional
    context string

    In batch situations the user can use the context to correlate responses with requests. This property is present regardless of whether the response was successful or returned as an error. context is specified by the user.

    Example : You can add any text here
  • Required
    data object
    • Required
      offset integer

      The starting index of the response items, i.e. where the response should start listing the returned items.

      Example : 0
    • Required
      limit integer

      Defines how many items should be returned in the response per page basis.

      Example : 50
    • Required
      total integer

      Defines the total number of items returned in the response.

      Example : 100
    • Required
      items array
      Example : Array ( )
      • Required
        confirmedBalance string

        Defines the token balance that has been confirmed.

        Example : 287090.926632
      • Required
        contractAddress string

        Represents the contract address of the token, which controls its logic. It is not the address that holds the tokens.

        Example : 0xdac17f958d2ee523a2206206994597c13d831ec7
      • Required
        name string

        Defines the token's name as a string.

        Example : Tether USD
      • Required
        symbol string

        Defines the token symbol by which the token contract is known. It is usually 3-4 characters in length.

        Example : USDT
      • Required
        type string

        Defines the specific token type.

        Example : ERC-20

Credits Cost : 1 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/v2/blockchain-data/ethereum/ropsten/addresses/0x033ef6db9fbd0ee60e2931906b987fe0280471a0/tokens?limit=50&offset=10
Headers
Host: https://rest.cryptoapis.io/v2
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2.0",
    "requestId": "601c1710034ed6d407996b30",
    "context": "You can add any text here",
    "data": {
        "offset": 0,
        "limit": 50,
        "total": 100,
        "items": [
            {
                "confirmedBalance": "287090.926632",
                "contractAddress": "0xdac17f958d2ee523a2206206994597c13d831ec7",
                "name": "Tether USD",
                "symbol": "USDT",
                "type": "ERC-20"
            }
        ]
    }
}