Skip to main content
GET
/
addresses
/
{address}
/
decode
Decode address
curl --request GET \
  --url https://mainnet.gomaestro-api.org/v1/addresses/{address}/decode \
  --header 'api-key: <api-key>'
import requests

url = "https://mainnet.gomaestro-api.org/v1/addresses/{address}/decode"

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/addresses/{address}/decode', 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/addresses/{address}/decode",
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/addresses/{address}/decode"

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/addresses/{address}/decode")
.header("api-key", "<api-key>")
.asString();
require 'uri'
require 'net/http'

url = URI("https://mainnet.gomaestro-api.org/v1/addresses/{address}/decode")

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
{
  "bech32": "addr_test1zp40k56s0pq085hyzyeclfh6l987el8xyze5v86h0pr7wzkvenlf6qfxx9s3re5y0pqh2ug89dynd8xsje5835f7sutslvktx9",
  "hex": "106afb53507840f3d2e411338fa6faf94fecfce620b3461f577847e70accccfe9d0126316111e68478417571072b49369cd0966878d13e8717",
  "network": "testnet",
  "payment_cred": {
    "kind": "script",
    "bech32": "addr_shared_vkh1dta4x5rcgrea9eq3xw86d7heflk0ee3qkdrp74mcglns58ucedk",
    "hex": "6afb53507840f3d2e411338fa6faf94fecfce620b3461f577847e70a"
  },
  "staking_cred": {
    "kind": "key",
    "bech32": "stake_vkh1enx0a8gpycckzy0xs3uyzat3qu45jd5u6ztxs7x386r3wzy6dys",
    "reward_address": "stake_test1urxvel5aqynrzcg3u6z8sst4wyrjkjfknngfv6rc6ylgw9cj72l60",
    "hex": "ccccfe9d0126316111e68478417571072b49369cd0966878d13e8717",
    "pointer": null
  }
}

Authorizations

api-key
string
header
required

Project API Key

Path Parameters

address
string
required

Address in bech32/hex/base58 format

Response

Decode an address

Information decoded from a Cardano address

hex
string
required
bech32
string | null
network
enum<string> | null
Available options:
mainnet,
testnet
payment_cred
object | null

Payment credential, the payment part of a Cardano address

staking_cred
object | null

Staking credential, the delegation part of a Cardano address