Transaction Info with Metaprotocols
curl --request GET \
--url https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}/metaprotocols \
--header 'api-key: <api-key>'import requests
url = "https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}/metaprotocols"
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/transactions/{tx_hash}/metaprotocols', 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/transactions/{tx_hash}/metaprotocols",
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/transactions/{tx_hash}/metaprotocols"
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/transactions/{tx_hash}/metaprotocols")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}/metaprotocols")
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": {
"block_hash": "000000000000000000011c58d06536d2c1453a4742274efc2d4456921f027e98",
"confirmations": 95,
"fees": "1548800",
"height": 866807,
"inputs": [
{
"address": "bc1ppth27qnr74qhusy9pmcyeaelgvsfky6qzquv9nf56gqmte59vfhqwkqguh",
"inscriptions": [
{
"inscription_id": "6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0",
"offset": 0
}
],
"runes": [],
"satoshis": "606",
"script_pubkey": "51200aeeaf0263f5417e40850ef04cf73f43209b13401038c2cd34d201b5e685626e",
"txid": "47c7260764af2ee17aa584d9c035f2e5429aefd96b8016cfe0e3f0bcf04869a3",
"vout": 0
},
{
"address": "bc1pfqgphdlagqahqe5yf5a4yja9nz4hdeycvcmk3j0r3kr79ltetfvqhnlguu",
"inscriptions": [],
"runes": [],
"satoshis": "10000",
"script_pubkey": "512048101bb7fd403b7066844d3b524ba598ab76e498663768c9e38d87e2fd795a58",
"txid": "fbf8ccedf64109568cb69485b28de876547a8c51bbf8f623c1906a69fdf16be4",
"vout": 0
},
{
"address": "bc1paefyrryx8j75fe2njzd7flnss9vgse0f9njewm7qpxaaypafhjasjn7qgw",
"inscriptions": [],
"runes": [],
"satoshis": "1558800",
"script_pubkey": "5120ee52418c863cbd44e553909be4fe7081588865e92ce5976fc009bbd207a9bcbb",
"txid": "42d82813e9fb16bcf14b75bd78a1e16983e40d2e04f6c7087dde83e1d93c509b",
"vout": 0
}
],
"metaprotocols": [
"inscriptions",
"brc20"
],
"outputs": [
{
"address": "bc1p6ka80aqd57wjskxknnfzmswl27tegkejcsfa0v600s6rxle5lagqg38e88",
"inscriptions": [
{
"inscription_id": "6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0",
"offset": 0
}
],
"runes": [],
"satoshis": "606",
"script_pubkey": "5120d5ba77f40da79d2858d69cd22dc1df5797945b32c413d7b34f7c34337f34ff50",
"spending_tx": null
},
{
"address": "bc1p5kjec5vl67yydqqljy4t97hdxq05s62qyqmmgzxhmqcd628ecuqs8c9w97",
"inscriptions": [
{
"inscription_id": "1b07f02356aed6ddca37db8226c6292f2953d55ea741d7f58d44427976e7d4eei0",
"offset": 0
}
],
"runes": [],
"satoshis": "10000",
"script_pubkey": "5120a5a59c519fd78846801f912ab2faed301f4869402037b408d7d830dd28f9c701",
"spending_tx": null
},
{
"address": "bc1p6uzgus82tyx8d4xt7eh0f6kxqn53a03529cyh9wmqcwchm6uvmtqkt5sdv",
"inscriptions": [],
"runes": [
{
"amount": "50000000",
"rune_id": "866807:12"
}
],
"satoshis": "10000",
"script_pubkey": "5120d7048e40ea590c76d4cbf66ef4eac604e91ebe3451704b95db061d8bef5c66d6",
"spending_tx": "72b6ccd9289cc2aac7c9e55b3fa9185115313702e10bee31c79c87fd5ef5fff6"
},
{
"address": null,
"inscriptions": [],
"runes": [],
"satoshis": "0",
"script_pubkey": "6a5d23020704f0daddcdf988a80303400580e9070680e1eb170ae80708d086030cdafe341602",
"spending_tx": null
}
],
"sats_per_vb": 1600,
"timestamp": "2024-10-22 06:16:34",
"tx_index": 12,
"unix_timestamp": 1729577794,
"volume": "20606"
},
"last_updated": {
"block_hash": "00000000000000000001676a1898b7804be18303e68e8ceacc00c713011b0ef4",
"block_height": 866902
}
}Transactions
Transaction Info with Metaprotocols
Get Bitcoin transaction information with metaprotocol data including Runes, Inscriptions, and BRC-20 token activities.
GET
/
transactions
/
{tx_hash}
/
metaprotocols
Transaction Info with Metaprotocols
curl --request GET \
--url https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}/metaprotocols \
--header 'api-key: <api-key>'import requests
url = "https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}/metaprotocols"
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/transactions/{tx_hash}/metaprotocols', 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/transactions/{tx_hash}/metaprotocols",
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/transactions/{tx_hash}/metaprotocols"
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/transactions/{tx_hash}/metaprotocols")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}/metaprotocols")
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": {
"block_hash": "000000000000000000011c58d06536d2c1453a4742274efc2d4456921f027e98",
"confirmations": 95,
"fees": "1548800",
"height": 866807,
"inputs": [
{
"address": "bc1ppth27qnr74qhusy9pmcyeaelgvsfky6qzquv9nf56gqmte59vfhqwkqguh",
"inscriptions": [
{
"inscription_id": "6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0",
"offset": 0
}
],
"runes": [],
"satoshis": "606",
"script_pubkey": "51200aeeaf0263f5417e40850ef04cf73f43209b13401038c2cd34d201b5e685626e",
"txid": "47c7260764af2ee17aa584d9c035f2e5429aefd96b8016cfe0e3f0bcf04869a3",
"vout": 0
},
{
"address": "bc1pfqgphdlagqahqe5yf5a4yja9nz4hdeycvcmk3j0r3kr79ltetfvqhnlguu",
"inscriptions": [],
"runes": [],
"satoshis": "10000",
"script_pubkey": "512048101bb7fd403b7066844d3b524ba598ab76e498663768c9e38d87e2fd795a58",
"txid": "fbf8ccedf64109568cb69485b28de876547a8c51bbf8f623c1906a69fdf16be4",
"vout": 0
},
{
"address": "bc1paefyrryx8j75fe2njzd7flnss9vgse0f9njewm7qpxaaypafhjasjn7qgw",
"inscriptions": [],
"runes": [],
"satoshis": "1558800",
"script_pubkey": "5120ee52418c863cbd44e553909be4fe7081588865e92ce5976fc009bbd207a9bcbb",
"txid": "42d82813e9fb16bcf14b75bd78a1e16983e40d2e04f6c7087dde83e1d93c509b",
"vout": 0
}
],
"metaprotocols": [
"inscriptions",
"brc20"
],
"outputs": [
{
"address": "bc1p6ka80aqd57wjskxknnfzmswl27tegkejcsfa0v600s6rxle5lagqg38e88",
"inscriptions": [
{
"inscription_id": "6fb976ab49dcec017f1e201e84395983204ae1a7c2abf7ced0a85d692e442799i0",
"offset": 0
}
],
"runes": [],
"satoshis": "606",
"script_pubkey": "5120d5ba77f40da79d2858d69cd22dc1df5797945b32c413d7b34f7c34337f34ff50",
"spending_tx": null
},
{
"address": "bc1p5kjec5vl67yydqqljy4t97hdxq05s62qyqmmgzxhmqcd628ecuqs8c9w97",
"inscriptions": [
{
"inscription_id": "1b07f02356aed6ddca37db8226c6292f2953d55ea741d7f58d44427976e7d4eei0",
"offset": 0
}
],
"runes": [],
"satoshis": "10000",
"script_pubkey": "5120a5a59c519fd78846801f912ab2faed301f4869402037b408d7d830dd28f9c701",
"spending_tx": null
},
{
"address": "bc1p6uzgus82tyx8d4xt7eh0f6kxqn53a03529cyh9wmqcwchm6uvmtqkt5sdv",
"inscriptions": [],
"runes": [
{
"amount": "50000000",
"rune_id": "866807:12"
}
],
"satoshis": "10000",
"script_pubkey": "5120d7048e40ea590c76d4cbf66ef4eac604e91ebe3451704b95db061d8bef5c66d6",
"spending_tx": "72b6ccd9289cc2aac7c9e55b3fa9185115313702e10bee31c79c87fd5ef5fff6"
},
{
"address": null,
"inscriptions": [],
"runes": [],
"satoshis": "0",
"script_pubkey": "6a5d23020704f0daddcdf988a80303400580e9070680e1eb170ae80708d086030cdafe341602",
"spending_tx": null
}
],
"sats_per_vb": 1600,
"timestamp": "2024-10-22 06:16:34",
"tx_index": 12,
"unix_timestamp": 1729577794,
"volume": "20606"
},
"last_updated": {
"block_hash": "00000000000000000001676a1898b7804be18303e68e8ceacc00c713011b0ef4",
"block_height": 866902
}
}Was this page helpful?
⌘I

