Skip to main content
GET
/
assets
/
brc20
/
{ticker}
/
holders
BRC20 Holders
curl --request GET \
  --url https://xbt-mainnet.gomaestro-api.org/v0/assets/brc20/{ticker}/holders \
  --header 'api-key: <api-key>'
import requests

url = "https://xbt-mainnet.gomaestro-api.org/v0/assets/brc20/{ticker}/holders"

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://xbt-mainnet.gomaestro-api.org/v0/assets/brc20/{ticker}/holders', 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://xbt-mainnet.gomaestro-api.org/v0/assets/brc20/{ticker}/holders",
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://xbt-mainnet.gomaestro-api.org/v0/assets/brc20/{ticker}/holders"

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://xbt-mainnet.gomaestro-api.org/v0/assets/brc20/{ticker}/holders")
.header("api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://xbt-mainnet.gomaestro-api.org/v0/assets/brc20/{ticker}/holders")

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": [
    {
      "address": "bc1q764zfcx3uw0dcvcdh7nnwm5fvsml0c2tgn942v",
      "balance": "9000000.000000000000000000",
      "script_pubkey": "0014f6aa24e0d1e39edc330dbfa7376e896437f7e14b"
    },
    {
      "address": "bc1pqfhj6tlxgpvc72mvn9hh0z666k45fpxgsej92d9q08sfe572mhlqca68ld",
      "balance": "420000.000000000000000000",
      "script_pubkey": "5120026f2d2fe640598f2b6c996f778b5ad5ab4484c886645534a079e09cd3caddfe"
    }
  ],
  "last_updated": {
    "block_hash": "00000000000000000002747b9e3c0097172bc23489d686e8b885a6fa89c2c4da",
    "block_height": 850534
  },
  "next_cursor": "19FwuaejD9hE1R4ckTQKaqe0ecA"
}

Authorizations

api-key
string
header
required

Project API Key

Path Parameters

ticker
string
required

BRC20 ticker string

Query Parameters

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

Requested data

data
object[]
required
last_updated
object
required
next_cursor
string | null