Accounts of addresses holding specific asset
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/assets/{asset}/accounts \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/assets/{asset}/accounts"
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/assets/{asset}/accounts', 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/assets/{asset}/accounts",
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/assets/{asset}/accounts"
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/assets/{asset}/accounts")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/assets/{asset}/accounts")
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": [
{
"account": "stake1uy3c9n7hlnvt2eucfpgd8ezqn424na7nhc6zca2atq0tqsg5ljq5v",
"amount": 1
},
{
"account": "stake1uylx7yct3smspkes9fzk3f8y8mmu90htxe75g923576d2zgpluxt7",
"amount": 3
}
],
"last_updated": {
"block_hash": "bdf4630098ac6923e0ef1ca0b0d6e00dca96790a8c3dd670948fdfe1456798d2",
"block_slot": 73867237
},
"next_cursor": null
}Assets
Accounts of addresses holding specific asset
Get stake accounts associated with addresses holding a specific Cardano native asset.
GET
/
assets
/
{asset}
/
accounts
Accounts of addresses holding specific asset
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/assets/{asset}/accounts \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/assets/{asset}/accounts"
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/assets/{asset}/accounts', 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/assets/{asset}/accounts",
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/assets/{asset}/accounts"
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/assets/{asset}/accounts")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/assets/{asset}/accounts")
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": [
{
"account": "stake1uy3c9n7hlnvt2eucfpgd8ezqn424na7nhc6zca2atq0tqsg5ljq5v",
"amount": 1
},
{
"account": "stake1uylx7yct3smspkes9fzk3f8y8mmu90htxe75g923576d2zgpluxt7",
"amount": 3
}
],
"last_updated": {
"block_hash": "bdf4630098ac6923e0ef1ca0b0d6e00dca96790a8c3dd670948fdfe1456798d2",
"block_slot": 73867237
},
"next_cursor": null
}Authorizations
Project API Key
Headers
Large numbers returned as strings if set to true
Path Parameters
Asset, encoded as concatenation of hex of policy ID and asset name
Query Parameters
The max number of results per page
Required range:
x >= 0Pagination cursor string, use the cursor included in a page of results to fetch the next page
Response
Returns stake addresses for accounts which control some of the specified asset
A paginated response. Pass in the next_cursor in a subsequent request as the cursor query parameter to fetch the next page of results.
Was this page helpful?

