Skip to main content
Get UTxO details on BitcoinIn this guide, you will learn to query Bitcoin and extract UTxO information by leveraging the UTxOs by Address endpoint.

Prerequisites

Before submitting an API request, ensure you have completed the following:

Steps to Submit an API Request

The API allows applications to retrieve a list of all UTxOs that are located at a specific address or controlled by a particular script (script pubkey). In this example, we will use the Bitcoin Testnet as the selected network for our project.

1. Select the Network

  • Ensure your project is configured to use Bitcoin Testnet.

2. Retrieve Transaction Output

  • Use the following endpoint to get a list of all UTxOs that reside at the specified Bitcoin address or script pubkey:

3. Specify Path Parameters

  • Include the required path parameters in your request:

4. Specify Query Parameters (Optional)

  • Include optional query parameters as needed:

5. Send the API Request

  • Use cURL or your preferred tool to send the API request:
For this example, we will use:
  • address: bc1qh62wlr6cv349jg2ltpfe6dgrjt585gzhlmecdu
  • filter_dust: true
  • order: desc
qfkWFyfdd8WZIxrXZTCgzRqZyphMA0hk

6. Review the Response

The API will return a response like the following:
JSON

7. Understanding the Response


Next StepsCongrats! Now that you’ve made your API request, let’s Submit Your First Transaction.