Transactions by Block
curl --request GET \
--url https://xbt-mainnet.gomaestro-api.org/v0/blocks/{height_or_hash}/transactions \
--header 'api-key: <api-key>'import requests
url = "https://xbt-mainnet.gomaestro-api.org/v0/blocks/{height_or_hash}/transactions"
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/blocks/{height_or_hash}/transactions', 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/blocks/{height_or_hash}/transactions",
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/blocks/{height_or_hash}/transactions"
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/blocks/{height_or_hash}/transactions")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xbt-mainnet.gomaestro-api.org/v0/blocks/{height_or_hash}/transactions")
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": [
{
"fees": "0",
"inputs": [],
"metaprotocols": [
"inscriptions"
],
"outputs": [
{
"address": "bc1p8k4v4xuz55dv49svzjg43qjxq2whur7ync9tm0xgl5t4wjl9ca9snxgmlt",
"inscriptions": 0,
"runes": 0,
"satoshis": "546",
"script_pubkey": "51203daaca9b82a51aca960c1491588246029d7e0fc49e0abdbcc8fd17574be5c74b",
"spending_tx": null,
"vout": 0
},
{
"address": "bc1qwzrryqr3ja8w7hnja2spmkgfdcgvqwp5swz4af4ngsjecfz0w0pqud7k38",
"inscriptions": 3519,
"runes": 0,
"satoshis": "314010406",
"script_pubkey": "00207086320071974eef5e72eaa01dd9096e10c0383483855ea6b344259c244f73c2",
"spending_tx": "1179ebbad0019e5743f25c86148f51b70bc705e76392ce1195205b7fb0d3f8d5",
"vout": 1
},
{
"address": null,
"inscriptions": 0,
"runes": 0,
"satoshis": "0",
"script_pubkey": "6a24aa21a9edf17f948f3b2f268b144bd8677617399ea639a55f0e849ba5e6f35af26cc39904",
"spending_tx": null,
"vout": 2
},
{
"address": null,
"inscriptions": 0,
"runes": 0,
"satoshis": "0",
"script_pubkey": "6a2d434f5245012e50087fb834747606ed01ad67ad0f32129ab431e6d18fda214e5b9f350ffc7b6cf3058b9026e765",
"spending_tx": null,
"vout": 3
}
],
"sats_per_vb": 0,
"total_inputs": 0,
"total_outputs": 4,
"tx_hash": "a306a1cb42f0e703219e0c2abb8cca08c85c8a3a55d4c0a119d62156a4cf435e",
"tx_index": 0,
"volume": "314010952"
},
{
"fees": "30300",
"inputs": [
{
"address": "bc1q5yw0e7hq42zwshvvq3sy2z07n7lg72elhdt8s577egxe2agm3xnq9nekyr",
"inscriptions": 0,
"runes": 0,
"satoshis": "94253892",
"script_pubkey": "0020a11cfcfae0aa84e85d8c04604509fe9fbe8f2b3fbb567853deca0d95751b89a6",
"txid": "65ff8bb5ab3feeeb1cdd47a200fc3d54ac70e4e4b1ca1c7e33f56207db7ddf86",
"vout": 1
}
],
"metaprotocols": [],
"outputs": [
{
"address": "bc1q0wu0tqp2u3rtunjl0h0rsl9pvf86acy6sep63st0lp7lgg67ykzqeq89pn",
"inscriptions": 0,
"runes": 0,
"satoshis": "9790000",
"script_pubkey": "00207bb8f5802ae446be4e5f7dde387ca1624faee09a8643a8c16ff87df4235e2584",
"spending_tx": "0c135cbd187ef5ed2ab266f02910cabfd6fa0993d1dbf6627a33363fba38181d",
"vout": 0
},
{
"address": "bc1qnq7td9m6xex4gqeu2d3t6j8tqkpwfxwt2dn2t07m6hnl9svcn54qu5hax4",
"inscriptions": 0,
"runes": 0,
"satoshis": "84433592",
"script_pubkey": "0020983cb6977a364d54033c5362bd48eb0582e499cb5366a5bfdbd5e7f2c1989d2a",
"spending_tx": "4075db2355cdcac155657c55a24a46e2fd083fc88dedd54bc900288a61a688e7",
"vout": 1
}
],
"sats_per_vb": 151,
"total_inputs": 1,
"total_outputs": 2,
"tx_hash": "04ac1f8968de3d1db8a6fc6504005e391ab8a85bb4a48b3d7f3e66e747d559ea",
"tx_index": 1,
"volume": "94223592"
}
],
"last_updated": {
"block_hash": "0000000000000000000122b2c240af790ee979f6e96175c00045cf54aa5a7001",
"block_height": 878055
},
"next_cursor": "AQE"
}Blocks
Transactions by Block
Get all transactions included in a specific Bitcoin block by height or hash with detailed transaction data.
GET
/
blocks
/
{height_or_hash}
/
transactions
Transactions by Block
curl --request GET \
--url https://xbt-mainnet.gomaestro-api.org/v0/blocks/{height_or_hash}/transactions \
--header 'api-key: <api-key>'import requests
url = "https://xbt-mainnet.gomaestro-api.org/v0/blocks/{height_or_hash}/transactions"
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/blocks/{height_or_hash}/transactions', 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/blocks/{height_or_hash}/transactions",
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/blocks/{height_or_hash}/transactions"
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/blocks/{height_or_hash}/transactions")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xbt-mainnet.gomaestro-api.org/v0/blocks/{height_or_hash}/transactions")
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": [
{
"fees": "0",
"inputs": [],
"metaprotocols": [
"inscriptions"
],
"outputs": [
{
"address": "bc1p8k4v4xuz55dv49svzjg43qjxq2whur7ync9tm0xgl5t4wjl9ca9snxgmlt",
"inscriptions": 0,
"runes": 0,
"satoshis": "546",
"script_pubkey": "51203daaca9b82a51aca960c1491588246029d7e0fc49e0abdbcc8fd17574be5c74b",
"spending_tx": null,
"vout": 0
},
{
"address": "bc1qwzrryqr3ja8w7hnja2spmkgfdcgvqwp5swz4af4ngsjecfz0w0pqud7k38",
"inscriptions": 3519,
"runes": 0,
"satoshis": "314010406",
"script_pubkey": "00207086320071974eef5e72eaa01dd9096e10c0383483855ea6b344259c244f73c2",
"spending_tx": "1179ebbad0019e5743f25c86148f51b70bc705e76392ce1195205b7fb0d3f8d5",
"vout": 1
},
{
"address": null,
"inscriptions": 0,
"runes": 0,
"satoshis": "0",
"script_pubkey": "6a24aa21a9edf17f948f3b2f268b144bd8677617399ea639a55f0e849ba5e6f35af26cc39904",
"spending_tx": null,
"vout": 2
},
{
"address": null,
"inscriptions": 0,
"runes": 0,
"satoshis": "0",
"script_pubkey": "6a2d434f5245012e50087fb834747606ed01ad67ad0f32129ab431e6d18fda214e5b9f350ffc7b6cf3058b9026e765",
"spending_tx": null,
"vout": 3
}
],
"sats_per_vb": 0,
"total_inputs": 0,
"total_outputs": 4,
"tx_hash": "a306a1cb42f0e703219e0c2abb8cca08c85c8a3a55d4c0a119d62156a4cf435e",
"tx_index": 0,
"volume": "314010952"
},
{
"fees": "30300",
"inputs": [
{
"address": "bc1q5yw0e7hq42zwshvvq3sy2z07n7lg72elhdt8s577egxe2agm3xnq9nekyr",
"inscriptions": 0,
"runes": 0,
"satoshis": "94253892",
"script_pubkey": "0020a11cfcfae0aa84e85d8c04604509fe9fbe8f2b3fbb567853deca0d95751b89a6",
"txid": "65ff8bb5ab3feeeb1cdd47a200fc3d54ac70e4e4b1ca1c7e33f56207db7ddf86",
"vout": 1
}
],
"metaprotocols": [],
"outputs": [
{
"address": "bc1q0wu0tqp2u3rtunjl0h0rsl9pvf86acy6sep63st0lp7lgg67ykzqeq89pn",
"inscriptions": 0,
"runes": 0,
"satoshis": "9790000",
"script_pubkey": "00207bb8f5802ae446be4e5f7dde387ca1624faee09a8643a8c16ff87df4235e2584",
"spending_tx": "0c135cbd187ef5ed2ab266f02910cabfd6fa0993d1dbf6627a33363fba38181d",
"vout": 0
},
{
"address": "bc1qnq7td9m6xex4gqeu2d3t6j8tqkpwfxwt2dn2t07m6hnl9svcn54qu5hax4",
"inscriptions": 0,
"runes": 0,
"satoshis": "84433592",
"script_pubkey": "0020983cb6977a364d54033c5362bd48eb0582e499cb5366a5bfdbd5e7f2c1989d2a",
"spending_tx": "4075db2355cdcac155657c55a24a46e2fd083fc88dedd54bc900288a61a688e7",
"vout": 1
}
],
"sats_per_vb": 151,
"total_inputs": 1,
"total_outputs": 2,
"tx_hash": "04ac1f8968de3d1db8a6fc6504005e391ab8a85bb4a48b3d7f3e66e747d559ea",
"tx_index": 1,
"volume": "94223592"
}
],
"last_updated": {
"block_hash": "0000000000000000000122b2c240af790ee979f6e96175c00045cf54aa5a7001",
"block_height": 878055
},
"next_cursor": "AQE"
}Authorizations
Project API Key
Path Parameters
Block height or block hash
Query Parameters
The max number of transactions per page
Required range:
x >= 0Pagination cursor string, use the cursor included in a page of results to fetch the next page
Was this page helpful?
⌘I

