Transaction output by output reference
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/transactions/{tx_hash}/outputs/{index}/txo \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/transactions/{tx_hash}/outputs/{index}/txo"
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/transactions/{tx_hash}/outputs/{index}/txo', 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/transactions/{tx_hash}/outputs/{index}/txo",
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/transactions/{tx_hash}/outputs/{index}/txo"
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/transactions/{tx_hash}/outputs/{index}/txo")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/transactions/{tx_hash}/outputs/{index}/txo")
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": {
"tx_hash": "291b983ac75275a933415475d6417413b34eaccc5f0794fd7b9e8d04e7fe077e",
"index": 0,
"assets": [
{
"unit": "lovelace",
"amount": 1224040
},
{
"unit": "0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2446a65644f7261636c654e4654",
"amount": 1
}
],
"address": "addr_test1wzdtu0djc76qyqak9cj239udezj2544nyk3ksmfqvaksv7c9xanpg",
"datum": {
"type": "hash",
"hash": "5fc2400956b1d1828bea0be9c94e95f2b3cebda27c21b07e8a6bada2b2588163",
"bytes": "d8799f584073ab91123886242e4d02de6ed05490d684e99a99c49b957a5f943a80655ac0744372adeacdc7dedb95a818ce676886f1306d439152b82d48de71688008840d00d8799fd8799f1a00030d401a000116e5ffd8799fd8799fd87a9f1b000001863d492040ffd87a80ffd8799fd87a9f1b000001863d649780ffd87a80ffff43555344ff581c0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2ff",
"json": {
"fields": [
{
"bytes": "73ab91123886242e4d02de6ed05490d684e99a99c49b957a5f943a80655ac0744372adeacdc7dedb95a818ce676886f1306d439152b82d48de71688008840d00"
},
{
"fields": [
{
"fields": [
{
"int": 200000
},
{
"int": 71397
}
]
},
{
"fields": [
{
"fields": [
{
"constructor": 1,
"fields": [
{
"int": 1676065448000
}
]
},
{
"constructor": 1,
"fields": []
}
]
},
{
"fields": [
{
"constructor": 1,
"fields": [
{
"int": 1676067248000
}
]
},
{
"constructor": 1,
"fields": []
}
]
}
]
},
{
"bytes": "555344"
}
]
},
{
"bytes": "0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2"
}
]
}
},
"reference_script": null,
"txout_cbor": null
},
"last_updated": {
"timestamp": "2022-10-10 20:25:28",
"block_hash": "3c504cc4ce12a511db04838b544820c4e2281c0209a906ca17981cf63a084b7b",
"block_slot": 32295757
}
}Transactions
Transaction output by output reference
Get specific Cardano transaction output (UTxO) by transaction hash and output index with asset details and datum information.
GET
/
transactions
/
{tx_hash}
/
outputs
/
{index}
/
txo
Transaction output by output reference
curl --request GET \
--url https://mainnet.gomaestro-api.org/v1/transactions/{tx_hash}/outputs/{index}/txo \
--header 'api-key: <api-key>'import requests
url = "https://mainnet.gomaestro-api.org/v1/transactions/{tx_hash}/outputs/{index}/txo"
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/transactions/{tx_hash}/outputs/{index}/txo', 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/transactions/{tx_hash}/outputs/{index}/txo",
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/transactions/{tx_hash}/outputs/{index}/txo"
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/transactions/{tx_hash}/outputs/{index}/txo")
.header("api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://mainnet.gomaestro-api.org/v1/transactions/{tx_hash}/outputs/{index}/txo")
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": {
"tx_hash": "291b983ac75275a933415475d6417413b34eaccc5f0794fd7b9e8d04e7fe077e",
"index": 0,
"assets": [
{
"unit": "lovelace",
"amount": 1224040
},
{
"unit": "0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2446a65644f7261636c654e4654",
"amount": 1
}
],
"address": "addr_test1wzdtu0djc76qyqak9cj239udezj2544nyk3ksmfqvaksv7c9xanpg",
"datum": {
"type": "hash",
"hash": "5fc2400956b1d1828bea0be9c94e95f2b3cebda27c21b07e8a6bada2b2588163",
"bytes": "d8799f584073ab91123886242e4d02de6ed05490d684e99a99c49b957a5f943a80655ac0744372adeacdc7dedb95a818ce676886f1306d439152b82d48de71688008840d00d8799fd8799f1a00030d401a000116e5ffd8799fd8799fd87a9f1b000001863d492040ffd87a80ffd8799fd87a9f1b000001863d649780ffd87a80ffff43555344ff581c0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2ff",
"json": {
"fields": [
{
"bytes": "73ab91123886242e4d02de6ed05490d684e99a99c49b957a5f943a80655ac0744372adeacdc7dedb95a818ce676886f1306d439152b82d48de71688008840d00"
},
{
"fields": [
{
"fields": [
{
"int": 200000
},
{
"int": 71397
}
]
},
{
"fields": [
{
"fields": [
{
"constructor": 1,
"fields": [
{
"int": 1676065448000
}
]
},
{
"constructor": 1,
"fields": []
}
]
},
{
"fields": [
{
"constructor": 1,
"fields": [
{
"int": 1676067248000
}
]
},
{
"constructor": 1,
"fields": []
}
]
}
]
},
{
"bytes": "555344"
}
]
},
{
"bytes": "0c64d6d0371d11185aae649cf3a169040e94214137137b531ebb16c2"
}
]
}
},
"reference_script": null,
"txout_cbor": null
},
"last_updated": {
"timestamp": "2022-10-10 20:25:28",
"block_hash": "3c504cc4ce12a511db04838b544820c4e2281c0209a906ca17981cf63a084b7b",
"block_slot": 32295757
}
}Authorizations
Project API Key
Headers
Large numbers returned as strings if set to true
Path Parameters
Transaction Hash
Output Index
Required range:
x >= 0Query Parameters
Include the CBOR encoding of the transaction output in the response
Response
Get a transaction output via it's output reference
Timestamped response. Returns the endpoint response data along with the chain-tip of the indexer, which details at which point in the chain's history the data was correct as-of.
Was this page helpful?
⌘I

