Get Token Details by Contract Address

Though this endpoint customers can obtain information about token details. This can be done by providing the contact address parameter.

This address is not the same as the smart contract creator address.

Single Result - This endpoint returns only one single result. GET /blockchain-data/{blockchain}/{network}/addresses/{contractAddress}/contract

Path Parameters

  • Required
    blockchain string

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

    Default : ethereum
    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
    contractAddress string

    Defines the specific address of the contract.

    Example : 0x7495fede000c8a3b77eeae09cf70fa94cd2d53f5

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.

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
      item object
      • Required
        tokenDecimals string

        Defines the number of decimals that the token possesses.

        Example : 18
      • Optional
        tokenName string

        Specifies the token's name.

        Example : Band Protocol
      • Optional
        tokenSymbol string

        Defines the unique symbol of the token.

        Example : BAND
      • Required
        tokenType string

        Defines the type of the token.

        Example : ERC-20
      • Required
        totalSupply string

        Defines the total number of tokens created that exist on the market minus the ones that have been burned.

        Example : 1000000

Credits Cost : 10 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/v2/blockchain-data/ethereum/ropsten/addresses/0x7495fede000c8a3b77eeae09cf70fa94cd2d53f5/contract
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": {
        "item": {
            "tokenDecimals": "18",
            "tokenName": "Band Protocol",
            "tokenSymbol": "BAND",
            "tokenType": "ERC-20",
            "totalSupply": "1000000"
        }
    }
}