Transaction Info
curl --request GET \
--url https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash} \
--header 'api-key: <api-key>'import requests
url = "https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}"
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}', 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}",
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}"
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}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}")
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": "0000000000000000000224d324bbb5df0e74e202d9ccf752d76341046fab3ec0",
"confirmations": 20035,
"fees": "8000",
"height": 855413,
"inputs": [
{
"address": "bc1qtlvtyurmupvg0g0a9tg0799hp3uwncj0wlg429",
"satoshis": "546",
"script_pubkey": "00145fd8b2707be05887a1fd2ad0ff14b70c78e9e24f",
"txid": "54f5c0dba6874d5d7305e108cba2c903145886bccb35e964f2a9b5063dd28f11",
"vout": 1
},
{
"address": "bc1q6kxj39dwva5xfv5278vcp3uhmql567qlpldtcr",
"satoshis": "291872",
"script_pubkey": "0014d58d2895ae676864b28af1d980c797d83f4d781f",
"txid": "d4c93d92f6704bf48dc693b92efa9b0675a6f6d171bdedb90cbf0f64f50749bb",
"vout": 3
}
],
"metaprotocols": [
"inscriptions",
"runes",
"brc20"
],
"outputs": [
{
"address": null,
"satoshis": "0",
"script_pubkey": "6a5d0b00c0a23303a9878cc30d01",
"spending_tx": null
},
{
"address": "bc1qj7dam98j6ktjcp320qu77y2vrylv49c2k2hkmu",
"satoshis": "546",
"script_pubkey": "0014979bdd94f2d5972c062a7839ef114c193eca970a",
"spending_tx": "794c74fcf67db3a2bf5c517a5fbc073f087b476c6c5bc7e25f01178aca739451"
},
{
"address": "bc1q6kxj39dwva5xfv5278vcp3uhmql567qlpldtcr",
"satoshis": "283872",
"script_pubkey": "0014d58d2895ae676864b28af1d980c797d83f4d781f",
"spending_tx": "68337ace84eb959c98139aa6b43b642539622fa58d45d4362464edc2df26ea82"
}
],
"sats_per_vb": 35,
"timestamp": "2024-08-04 23:38:20",
"tx_index": 18,
"unix_timestamp": 1722814700,
"volume": "284418"
},
"last_updated": {
"block_hash": "00000000000000000000c0ab8525c3e1839e991ff6e06665d206370133ca2c96",
"block_height": 875448
}
}Transactions
Transaction Info
Get detailed Bitcoin transaction information including inputs, outputs, fees, and confirmation status by transaction hash.
GET
/
transactions
/
{tx_hash}
Transaction Info
curl --request GET \
--url https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash} \
--header 'api-key: <api-key>'import requests
url = "https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}"
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}', 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}",
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}"
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}")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://xbt-mainnet.gomaestro-api.org/v0/transactions/{tx_hash}")
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": "0000000000000000000224d324bbb5df0e74e202d9ccf752d76341046fab3ec0",
"confirmations": 20035,
"fees": "8000",
"height": 855413,
"inputs": [
{
"address": "bc1qtlvtyurmupvg0g0a9tg0799hp3uwncj0wlg429",
"satoshis": "546",
"script_pubkey": "00145fd8b2707be05887a1fd2ad0ff14b70c78e9e24f",
"txid": "54f5c0dba6874d5d7305e108cba2c903145886bccb35e964f2a9b5063dd28f11",
"vout": 1
},
{
"address": "bc1q6kxj39dwva5xfv5278vcp3uhmql567qlpldtcr",
"satoshis": "291872",
"script_pubkey": "0014d58d2895ae676864b28af1d980c797d83f4d781f",
"txid": "d4c93d92f6704bf48dc693b92efa9b0675a6f6d171bdedb90cbf0f64f50749bb",
"vout": 3
}
],
"metaprotocols": [
"inscriptions",
"runes",
"brc20"
],
"outputs": [
{
"address": null,
"satoshis": "0",
"script_pubkey": "6a5d0b00c0a23303a9878cc30d01",
"spending_tx": null
},
{
"address": "bc1qj7dam98j6ktjcp320qu77y2vrylv49c2k2hkmu",
"satoshis": "546",
"script_pubkey": "0014979bdd94f2d5972c062a7839ef114c193eca970a",
"spending_tx": "794c74fcf67db3a2bf5c517a5fbc073f087b476c6c5bc7e25f01178aca739451"
},
{
"address": "bc1q6kxj39dwva5xfv5278vcp3uhmql567qlpldtcr",
"satoshis": "283872",
"script_pubkey": "0014d58d2895ae676864b28af1d980c797d83f4d781f",
"spending_tx": "68337ace84eb959c98139aa6b43b642539622fa58d45d4362464edc2df26ea82"
}
],
"sats_per_vb": 35,
"timestamp": "2024-08-04 23:38:20",
"tx_index": 18,
"unix_timestamp": 1722814700,
"volume": "284418"
},
"last_updated": {
"block_hash": "00000000000000000000c0ab8525c3e1839e991ff6e06665d206370133ca2c96",
"block_height": 875448
}
}Was this page helpful?
⌘I

