Get Address Details

Through this endpoint the customer can receive basic information about a given address based on confirmed/synced blocks only. In the case where there are any incoming or outgoing unconfirmed transactions for the specific address, they will not be counted or calculated here.

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

Path Parameters

  • Required
    blockchain string

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

    Example : bitcoin
    Possible Values : bitcoin bitcoin-cash litecoin dogecoin dash ethereum ethereum-classic binance-smart-chain zcash
  • 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 : testnet
    Possible Values : mainnet testnet ropsten mordor
  • Required
    address string

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

    Example : mzYijhgmzZrmuB7wBDazRKirnChKyow4M3

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
        transactionsCount integer

        Represents the total number of confirmed coins transactions for this address, both incoming and outgoing. Applies for coins only and not tokens transfers e.g. for Ethereum. transactionsCount could result as less than incoming and outgoing transactions put together (e.g. in Bitcoin), due to the fact that one and the same address could be in senders and receivers addresses.

        Example : 3
      • Required
        confirmedBalance object
        • Required
          amount string

          Defines the total balance of the address that is confirmed. It doesn't include unconfirmed transactions.

          Example : 3.5
        • Required
          unit string

          Represents the unit of the confirmed balance.

          Example : BTC
      • Required
        totalReceived object
        • Required
          amount string

          Defines the total amount of all coins received to the address, based on confirmed transactions.

          Example : 5.6
        • Required
          unit string

          Represents the unit of the total received amount.

          Example : BTC
      • Required
        totalSpent object
        • Required
          amount string

          Defines the total amount of all spent by this address coins, based on confirmed transactions.

          Example : 2.1
        • Required
          unit string

          Represents the unit of the total spent amount.

          Example : BTC
      • Required
        incomingTransactionsCount integer

        Defines the count of the incoming transactions.

        Example : 1
      • Required
        outgoingTransactionsCount integer

        Defines the count of the outgoing transactions.

        Example : 2

Credits Cost : 5 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/v2/blockchain-data/bitcoin/testnet/addresses/mzYijhgmzZrmuB7wBDazRKirnChKyow4M3
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": {
            "transactionsCount": 3,
            "confirmedBalance": {
                "amount": "3.5",
                "unit": "BTC"
            },
            "totalReceived": {
                "amount": "5.6",
                "unit": "BTC"
            },
            "totalSpent": {
                "amount": "2.1",
                "unit": "BTC"
            },
            "incomingTransactionsCount": 1,
            "outgoingTransactionsCount": 2
        }
    }
}