Skip to main content
GET
/
addresses
/
{address}
/
utxos
UTxOs at an address
curl --request GET \
  --url https://mainnet.gomaestro-api.org/v1/addresses/{address}/utxos \
  --header 'api-key: <api-key>'
import requests

url = "https://mainnet.gomaestro-api.org/v1/addresses/{address}/utxos"

headers = {"api-key": "<api-key>"}

response = requests.get(url, headers=headers)

print(response.text)
const options = {method: 'GET', headers: {'api-key': '<api-key>'}};

fetch('https://mainnet.gomaestro-api.org/v1/addresses/{address}/utxos', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));
<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => "https://mainnet.gomaestro-api.org/v1/addresses/{address}/utxos",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"api-key: <api-key>"
],
]);

$response = curl_exec($curl);
$err = curl_error($curl);

curl_close($curl);

if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
package main

import (
"fmt"
"net/http"
"io"
)

func main() {

url := "https://mainnet.gomaestro-api.org/v1/addresses/{address}/utxos"

req, _ := http.NewRequest("GET", url, nil)

req.Header.Add("api-key", "<api-key>")

res, _ := http.DefaultClient.Do(req)

defer res.Body.Close()
body, _ := io.ReadAll(res.Body)

fmt.Println(string(body))

}
HttpResponse<String> response = Unirest.get("https://mainnet.gomaestro-api.org/v1/addresses/{address}/utxos")
.header("api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://mainnet.gomaestro-api.org/v1/addresses/{address}/utxos")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["api-key"] = '<api-key>'

response = http.request(request)
puts response.read_body
{
  "data": [
    {
      "tx_hash": "b24743fb4b5381971ee8b3d02a3fd5e783acdb5a21cd2d22d192ec84e7e279fc",
      "index": 0,
      "slot": 23100140,
      "assets": [
        {
          "unit": "lovelace",
          "amount": 1224040
        },
        {
          "unit": "0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2446a65644f7261636c654e4654",
          "amount": 1
        }
      ],
      "address": "addr_test1wzdtu0djc76qyqak9cj239udezj2544nyk3ksmfqvaksv7c9xanpg",
      "datum": {
        "type": "hash",
        "hash": "ac0017f05bec9c7d1a475283b89fc40630ecdd66544fc3c0506be5f7c790d79e",
        "bytes": null,
        "json": null
      },
      "reference_script": null,
      "txout_cbor": null
    },
    {
      "tx_hash": "e2e91c7be8239b9f52fadec8df627fe759d21e5b6559c3ec06d8120f1366e075",
      "index": 0,
      "slot": 32264892,
      "assets": [
        {
          "unit": "lovelace",
          "amount": 1224040
        },
        {
          "unit": "0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2446a65644f7261636c654e4654",
          "amount": 1
        }
      ],
      "address": "addr_test1wzdtu0djc76qyqak9cj239udezj2544nyk3ksmfqvaksv7c9xanpg",
      "datum": {
        "type": "hash",
        "hash": "bdea76b7527bf513874be137b040b3235033d6d5af0add15d6e0dcfc78859aed",
        "bytes": null,
        "json": null
      },
      "reference_script": null,
      "txout_cbor": null
    }
  ],
  "last_updated": {
    "timestamp": "2022-10-10 20:25:28",
    "block_hash": "eb5008ee0990527fb0d27d16b8c6284d4c898112509948d4741a7c41e544b912",
    "block_slot": 32265653
  },
  "next_cursor": null
}

Authorizations

api-key
string
header
required

Project API Key

Headers

amounts-as-strings
string | null

Large numbers returned as strings if set to true

Path Parameters

address
string
required

Address in bech32 format

Query Parameters

asset
string | null

Return only UTxOs which contain some of a specific asset (asset formatted as concatenation of hex encoded policy and asset name)

resolve_datums
boolean | null

Try find and include the corresponding datums for datum hashes

with_cbor
boolean | null

Include the CBOR encodings of the transaction outputs in the response

count
integer | null
default:100

The max number of results per page

Required range: x >= 0
order
enum<string> | null
default:asc

The order in which the results are sorted (by slot at which UTxO was produced)

Available options:
asc,
desc
from
integer<int64> | null

Return only UTxOs created on or after a specific slot

Required range: x >= 0
to
integer<int64> | null

Return only UTxOs created on or before a specific slot

Required range: x >= 0
cursor
string | null

Pagination cursor string, use the cursor included in a page of results to fetch the next page

Response

Get all unspent transaction outputs at an address

A paginated response. Pass in the next_cursor in a subsequent request as the cursor query parameter to fetch the next page of results.

data
object[]
required

Endpoint response data

last_updated
object
required

Details of the most recent block processed by the indexer (aka chain tip); that is, the data returned is correct as of this block in time.

next_cursor
string | null

Pagination cursor