Skip to main content
GET
/
accounts
/
{stake_addr}
/
assets
Stake account assets
curl --request GET \
  --url https://mainnet.gomaestro-api.org/v1/accounts/{stake_addr}/assets \
  --header 'api-key: <api-key>'
import requests

url = "https://mainnet.gomaestro-api.org/v1/accounts/{stake_addr}/assets"

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/accounts/{stake_addr}/assets', 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/accounts/{stake_addr}/assets",
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/accounts/{stake_addr}/assets"

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/accounts/{stake_addr}/assets")
.header("api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://mainnet.gomaestro-api.org/v1/accounts/{stake_addr}/assets")

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": [
    {
      "unit": "01a67bf1c1b29912b17d53a31fa4b650da2dd136ff24ecc84f452ff047616d654368616e6765724e4654202331",
      "amount": 5
    },
    {
      "unit": "01a67bf1c1b29912b17d53a31fa4b650da2dd136ff24ecc84f452ff047616d654368616e6765724e4654202332",
      "amount": 6
    },
    {
      "unit": "01a67bf1c1b29912b17d53a31fa4b650da2dd136ff24ecc84f452ff047616d654368616e6765724e4654202333",
      "amount": 7
    },
    {
      "unit": "2f7e0f588efe4e2836c829c50619a498ddf5521255bf5e1e9f9f5a1346616b65555344",
      "amount": 864
    },
    {
      "unit": "833a41706977b6c54edba264a7ea9dc4390728a05c69cb53d8081df147616d654368616e676572546f6b656ef09f9a80",
      "amount": 2
    },
    {
      "unit": "cc5827d01be77807a48d7e3b70a7c32667722bce7957a61ca52f4e0d47616d654368616e676572546f6b656ef09f9a80",
      "amount": 70
    }
  ],
  "last_updated": {
    "timestamp": "2022-10-10 20:25:28",
    "block_hash": "27b0866a073a5068bd6a24a009beba68f8951c6bf2ae4c72a734c8566ecabfc2",
    "block_slot": 32208940
  },
  "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

stake_addr
string
required

Bech32 encoded reward/stake address ('stake1...')

Query Parameters

policy
string | null

Filter results to only show assets of the specified policy

count
integer | null
default:100

The max number of results per page

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

A list of assets which are owned by addresses that use the specified stake key

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