List Unspent Transaction Outputs By Address

Through this endpoint customers can list their transactions' unspent outputs by address.

List of Results - This endpoint returns multiple objects which means pagination is applicable. GET /blockchain-data/{blockchain}/{network}/addresses/{address}/unspent-outputs

Path Parameters

  • Required
    blockchain string

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

    Example : bitcoin
    Possible Values : bitcoin bitcoin-cash litecoin dash dogecoin 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", "goerli" are test networks.

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

    Represents the address that has unspend funds per which the result is returned.

    Example : 2MtzNEqm2D9jcbPJ5mW7Z3AUNwqt3afZH66

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.

    Example : yourExampleString
  • 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 : 0

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 : 2023-04-25
  • 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 : yourExampleString
  • Required
    data object
    • Required
      limit integer

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

      Example : 50
    • Required
      offset integer

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

      Example : 0
    • Required
      total integer

      Defines the total number of items returned in the response.

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

        Represents the address that has unspend funds per which the result is returned.

        Example : 2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1
      • Required
        amount string

        Represents the sent/received amount.

        Example : 0.00873472
      • Required
        index integer

        Represents the index position of the transaction in the block.

        Example : 1
      • Required
        isAvailable boolean

        Represents if the UTXO has been used from another unconfirmed transaction. If it is - the value will be "false".

        Example : True
      • Required
        isConfirmed boolean

        Represents the state of the transaction whether it is confirmed or not confirmed.

        Example : True
      • Required
        timestamp integer

        Defines the exact date/time in Unix Timestamp when this transaction was mined, confirmed or first seen in Mempool, if it is unconfirmed.

        Example : 1622466746
      • Required
        transactionId string

        Represents the unique identifier of a transaction, i.e. it could be transactionId in UTXO-based protocols like Bitcoin, and transaction hash in Ethereum blockchain.

        Example : 4b66461bf88b61e1e4326356534c135129defb504c7acb2fd6c92697d79eb250

Credits Cost : 500 Credits For 1 Result(s)

Try it out

Request Example

GET
https://rest.cryptoapis.io/blockchain-data/bitcoin/testnet/addresses/2MtzNEqm2D9jcbPJ5mW7Z3AUNwqt3afZH66/unspent-outputs?context=yourExampleString&limit=50&offset=0
Headers
Content-Type: application/json
X-API-Key: my-api-key

Response Example

{
    "apiVersion": "2023-04-25",
    "requestId": "601c1710034ed6d407996b30",
    "context": "yourExampleString",
    "data": {
        "limit": 50,
        "offset": 0,
        "total": 100,
        "items": [
            {
                "address": "2N5PcdirZUzKF9bWuGdugNuzcQrCbBudxv1",
                "amount": "0.00873472",
                "index": 1,
                "isAvailable": true,
                "isConfirmed": true,
                "timestamp": 1622466746,
                "transactionId": "4b66461bf88b61e1e4326356534c135129defb504c7acb2fd6c92697d79eb250"
            }
        ]
    }
}