POST
/
transactions
/
outputs
Transaction outputs by output references
curl --request POST \
  --url https://mainnet.gomaestro-api.org/v1/transactions/outputs \
  --header 'Content-Type: application/json' \
  --header 'api-key: <api-key>' \
  --data '[
  "a90e31b3de59452659617c351e5f746b819cb8b026bf945dd41b4cc199bcc8c9#1",
  "31a84c3c6200bec2498b18c42f882fa690cd0d32a9c84a2019eb5cc42f5971d0#0"
]'
{
  "data": [
    {
      "tx_hash": "31a84c3c6200bec2498b18c42f882fa690cd0d32a9c84a2019eb5cc42f5971d0",
      "index": 0,
      "assets": [
        {
          "unit": "lovelace",
          "amount": 27660180
        }
      ],
      "address": "addr1wxn9efv2f6w82hagxqtn62ju4m293tqvw0uhmdl64ch8uwc0h43gt",
      "datum": {
        "type": "hash",
        "hash": "f03819a4039003a8c6b65153351adbc61f983bd22787ed238a5b4f24a01aa5d6",
        "bytes": "d8799fd8799fd8799f581cfc6e1b47816bc4a4165a39f3c6dd65868e6b74a743dc2dcf54eb2d4cffd8799fd8799fd8799f581cd756fb7ceee90ed5af3f193d73f9970ca640ab540eedac272cb28c29ffffffffd8799fd8799f581cfc6e1b47816bc4a4165a39f3c6dd65868e6b74a743dc2dcf54eb2d4cffd8799fd8799fd8799f581cd756fb7ceee90ed5af3f193d73f9970ca640ab540eedac272cb28c29ffffffffd87a80d87a9fd8799f581c25f0fc240e91bd95dcdaebd2ba7713fc5168ac77234a3d79449fc20c47534f4349455459ff1a0bebc200ff1a001e84801a001e8480ff",
        "json": {
          "constructor": 0,
          "fields": [
            {
              "constructor": 0,
              "fields": [
                {
                  "constructor": 0,
                  "fields": [
                    {
                      "bytes": "fc6e1b47816bc4a4165a39f3c6dd65868e6b74a743dc2dcf54eb2d4c"
                    }
                  ]
                },
                {
                  "constructor": 0,
                  "fields": [
                    {
                      "constructor": 0,
                      "fields": [
                        {
                          "constructor": 0,
                          "fields": [
                            {
                              "bytes": "d756fb7ceee90ed5af3f193d73f9970ca640ab540eedac272cb28c29"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "constructor": 0,
              "fields": [
                {
                  "constructor": 0,
                  "fields": [
                    {
                      "bytes": "fc6e1b47816bc4a4165a39f3c6dd65868e6b74a743dc2dcf54eb2d4c"
                    }
                  ]
                },
                {
                  "constructor": 0,
                  "fields": [
                    {
                      "constructor": 0,
                      "fields": [
                        {
                          "constructor": 0,
                          "fields": [
                            {
                              "bytes": "d756fb7ceee90ed5af3f193d73f9970ca640ab540eedac272cb28c29"
                            }
                          ]
                        }
                      ]
                    }
                  ]
                }
              ]
            },
            {
              "constructor": 1,
              "fields": []
            },
            {
              "constructor": 1,
              "fields": [
                {
                  "constructor": 0,
                  "fields": [
                    {
                      "bytes": "25f0fc240e91bd95dcdaebd2ba7713fc5168ac77234a3d79449fc20c"
                    },
                    {
                      "bytes": "534f4349455459"
                    }
                  ]
                },
                {
                  "int": 200000000
                }
              ]
            },
            {
              "int": 2000000
            },
            {
              "int": 2000000
            }
          ]
        }
      },
      "reference_script": null,
      "txout_cbor": null
    },
    {
      "tx_hash": "a90e31b3de59452659617c351e5f746b819cb8b026bf945dd41b4cc199bcc8c9",
      "index": 1,
      "assets": [
        {
          "unit": "lovelace",
          "amount": 118671749
        }
      ],
      "address": "addr1qy27nwry749alh8ajmkghml67j9egdx9asgcnsjk8wldfs40m5d3qle5j85vfd335zzxfdz9eshkjh58svvjwtgxt0tskx7f5l",
      "datum": null,
      "reference_script": null,
      "txout_cbor": null
    }
  ],
  "last_updated": {
    "timestamp": "2022-10-10 20:25:28",
    "block_hash": "bdf4630098ac6923e0ef1ca0b0d6e00dca96790a8c3dd670948fdfe1456798d2",
    "block_slot": 73867237
  },
  "next_cursor": null
}

Authorizations

api-key
string
header
required

Project API Key

Query Parameters

resolve_datums
boolean | null

Try find and include the corresponding datums for datum hashes

with_cbor
boolean | null

Include the CBOR encoding of the transaction output in the response

allow_missing
boolean | null

Do not return 404 if any transactions are not found (404 will still be returned if you specify an index higher than the number of outputs in a transaction)

count
integer
default:100

The max number of results per page

Required range: x >= 0
cursor
string | null

Pagination cursor string, use the cursor included in a page of results to fetch the next page

Body

application/json · string[]

The body is of type string[].

Response

200
application/json

Get transaction outputs via output references

A paginated response. Pass in the next_cursor in a subsequent request as the cursor query parameter to fetch the next page of results.