> ## Documentation Index
> Fetch the complete documentation index at: https://docs.gomaestro.org/llms.txt
> Use this file to discover all available pages before exploring further.

> Get detailed Cardano transaction information including inputs, outputs, metadata, and smart contract interactions by transaction hash.

# Transaction details



## OpenAPI

````yaml cardano/blockchain-indexer-api/openapi.json get /transactions/{tx_hash}
openapi: 3.0.3
info:
  title: Cardano - Blockchain Indexer API
  description: Core indexer endpoints dedicated to Cardano.
  contact:
    name: Maestro Blockchain Inc.
    url: https://gomaestro.org/
    email: info@gomaestro.org
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.txt
  version: v1.8.0
servers:
  - url: https://mainnet.gomaestro-api.org/v1
    description: Cardano Mainnet
  - url: https://preprod.gomaestro-api.org/v1
    description: Cardano Preprod
  - url: https://preview.gomaestro-api.org/v1
    description: Cardano Preview
security:
  - api-key: []
tags:
  - name: Maestro
paths:
  /transactions/{tx_hash}:
    get:
      tags:
        - Transactions
      summary: Transaction details
      description: Returns detailed information about a transaction
      operationId: tx_info
      parameters:
        - name: tx_hash
          in: path
          description: Transaction hash in hex
          required: true
          schema:
            type: string
        - name: amounts-as-strings
          in: header
          description: Large numbers returned as strings if set to `true`
          required: false
          schema:
            type: string
            nullable: true
      responses:
        '200':
          description: Detailed information about the specified transaction
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TimestampedTransactionInfo'
              example:
                data:
                  tx_hash: >-
                    e33433bdc122bd4032e2d4d2371d75658f81804c50e56c4edf2da01baaccccc7
                  block_hash: >-
                    58df3617b77c9b8da958c118c3daf9cabae86e31aca761fe9bb8d57b40fe14be
                  block_tx_index: 26
                  block_height: 9661308
                  block_timestamp: 1702330595
                  block_absolute_slot: 110764304
                  block_epoch: 453
                  inputs:
                    - tx_hash: >-
                        498965c4ca9e705e0e4fa90c7b723b6bf5bcdf4362e4843c8b9bd54eaa73c9ad
                      index: 0
                      assets:
                        - unit: lovelace
                          amount: 344000000
                      address: >-
                        addr1zxn9efv2f6w82hagxqtn62ju4m293tqvw0uhmdl64ch8uw6j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pq6s3z70
                      datum:
                        type: hash
                        hash: >-
                          352956040ebdafc51cb80aed1dcbbbceff03dcfde2eb56cc29511856b5bb476a
                        bytes: >-
                          d8799fd8799fd8799f581c3e7016902520a84e8911db26a045ad31224da1a631929f5fc149724dffd8799fd8799fd8799f581c09d9128f44e94b849a09d90eeaec4b26c60c4f11a40a94ca2267e353ffffffffd8799fd8799f581c3e7016902520a84e8911db26a045ad31224da1a631929f5fc149724dffd8799fd8799fd8799f581c09d9128f44e94b849a09d90eeaec4b26c60c4f11a40a94ca2267e353ffffffffd87a80d8799fd8799f581c5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d11443494147ff1a4183768bff1a001e84801a001e8480ff
                        json:
                          fields:
                            - fields:
                                - fields:
                                    - bytes: >-
                                        3e7016902520a84e8911db26a045ad31224da1a631929f5fc149724d
                                - fields:
                                    - fields:
                                        - fields:
                                            - bytes: >-
                                                09d9128f44e94b849a09d90eeaec4b26c60c4f11a40a94ca2267e353
                            - fields:
                                - fields:
                                    - bytes: >-
                                        3e7016902520a84e8911db26a045ad31224da1a631929f5fc149724d
                                - fields:
                                    - fields:
                                        - fields:
                                            - bytes: >-
                                                09d9128f44e94b849a09d90eeaec4b26c60c4f11a40a94ca2267e353
                            - constructor: 1
                              fields: []
                            - fields:
                                - fields:
                                    - bytes: >-
                                        5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114
                                    - bytes: '494147'
                                - int: 1099134603
                            - int: 2000000
                            - int: 2000000
                      reference_script: null
                    - tx_hash: >-
                        c22e28eb033ac63a549e65e0407d374c14bf5805b37f7c8a7b1a0770fe00c656
                      index: 0
                      assets:
                        - unit: lovelace
                          amount: 1416027292509
                        - unit: >-
                            0be55d262b29f564998ff81efe21bdc0022621c12f15af08d0f2ddb1bdfd144032f09ad980b8d205fef0737c2232b4e90a5d34cc814d0ef687052400
                          amount: 1
                        - unit: >-
                            13aa2accf2e1561723aa26871e071fdf32c867cff7e7d50ad470d62f4d494e53574150
                          amount: 1
                        - unit: >-
                            5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114494147
                          amount: 4615496690137
                        - unit: >-
                            e4214b7cce62ac6fbba385d164df48e157eae5863521b4b67ca71d86bdfd144032f09ad980b8d205fef0737c2232b4e90a5d34cc814d0ef687052400
                          amount: 1365147
                      address: >-
                        addr1z8snz7c4974vzdpxu65ruphl3zjdvtxw8strf2c2tmqnxz2j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pq0xmsha
                      datum:
                        type: hash
                        hash: >-
                          d97ccf3eba5574c513e902ca376bd087c03311c425d481a4ffc38b5c27b8cb4c
                        bytes: >-
                          d8799fd8799f4040ffd8799f581c5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d11443494147ff1b0000018bc1e7de051b0000025339590c7ad8799fd8799fd8799fd8799f581caafb1196434cb837fd6f21323ca37b302dff6387e8a84b3fa28faf56ffd8799fd8799fd8799f581c52563c5410bff6a0d43ccebb7c37e1f69f5eb260552521adff33b9c2ffffffffd87a80ffffff
                        json:
                          fields:
                            - fields:
                                - bytes: ''
                                - bytes: ''
                            - fields:
                                - bytes: >-
                                    5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114
                                - bytes: '494147'
                            - int: 1699765280261
                            - int: 2556467678330
                            - fields:
                                - fields:
                                    - fields:
                                        - fields:
                                            - bytes: >-
                                                aafb1196434cb837fd6f21323ca37b302dff6387e8a84b3fa28faf56
                                        - fields:
                                            - fields:
                                                - fields:
                                                    - bytes: >-
                                                        52563c5410bff6a0d43ccebb7c37e1f69f5eb260552521adff33b9c2
                                    - constructor: 1
                                      fields: []
                      reference_script: null
                    - tx_hash: >-
                        c8fcd44cfa28d6cd9b58ff1cd8c5ce1dc4872ec2655fa723c58ef683610bdc4b
                      index: 2
                      assets:
                        - unit: lovelace
                          amount: 1455465782
                        - unit: >-
                            2f2e0404310c106e2a260e8eb5a7e43f00cff42c667489d30e17981631373032363237323030303030
                          amount: 1
                      address: >-
                        addr1qx7tzh4qen0p50ntefz8yujwgqt7zulef6t6vrf7dq4xa82j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pqrkj6fh
                      datum: null
                      reference_script: null
                  outputs:
                    - tx_hash: >-
                        e33433bdc122bd4032e2d4d2371d75658f81804c50e56c4edf2da01baaccccc7
                      index: 0
                      assets:
                        - unit: lovelace
                          amount: 1416367292509
                        - unit: >-
                            0be55d262b29f564998ff81efe21bdc0022621c12f15af08d0f2ddb1bdfd144032f09ad980b8d205fef0737c2232b4e90a5d34cc814d0ef687052400
                          amount: 1
                        - unit: >-
                            13aa2accf2e1561723aa26871e071fdf32c867cff7e7d50ad470d62f4d494e53574150
                          amount: 1
                        - unit: >-
                            5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114494147
                          amount: 4614392059860
                        - unit: >-
                            e4214b7cce62ac6fbba385d164df48e157eae5863521b4b67ca71d86bdfd144032f09ad980b8d205fef0737c2232b4e90a5d34cc814d0ef687052400
                          amount: 1365147
                      address: >-
                        addr1z8snz7c4974vzdpxu65ruphl3zjdvtxw8strf2c2tmqnxz2j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pq0xmsha
                      datum:
                        type: hash
                        hash: >-
                          d97ccf3eba5574c513e902ca376bd087c03311c425d481a4ffc38b5c27b8cb4c
                        bytes: >-
                          d8799fd8799f4040ffd8799f581c5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d11443494147ff1b0000018bc1e7de051b0000025339590c7ad8799fd8799fd8799fd8799f581caafb1196434cb837fd6f21323ca37b302dff6387e8a84b3fa28faf56ffd8799fd8799fd8799f581c52563c5410bff6a0d43ccebb7c37e1f69f5eb260552521adff33b9c2ffffffffd87a80ffffff
                        json:
                          fields:
                            - fields:
                                - bytes: ''
                                - bytes: ''
                            - fields:
                                - bytes: >-
                                    5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114
                                - bytes: '494147'
                            - int: 1699765280261
                            - int: 2556467678330
                            - fields:
                                - fields:
                                    - fields:
                                        - fields:
                                            - bytes: >-
                                                aafb1196434cb837fd6f21323ca37b302dff6387e8a84b3fa28faf56
                                        - fields:
                                            - fields:
                                                - fields:
                                                    - bytes: >-
                                                        52563c5410bff6a0d43ccebb7c37e1f69f5eb260552521adff33b9c2
                                    - constructor: 1
                                      fields: []
                      reference_script: null
                    - tx_hash: >-
                        e33433bdc122bd4032e2d4d2371d75658f81804c50e56c4edf2da01baaccccc7
                      index: 1
                      assets:
                        - unit: lovelace
                          amount: 2000000
                        - unit: >-
                            5d16cc1a177b5d9ba9cfa9793b07e60f1fb70fea1f8aef064415d114494147
                          amount: 1104630277
                      address: >-
                        addr1qyl8q95sy5s2sn5fz8djdgz945cjyndp5cce986lc9yhyngfmyfg738ffwzf5zwepm4wcjexccxy7ydyp22v5gn8udfste7yl4
                      datum: null
                      reference_script: null
                    - tx_hash: >-
                        e33433bdc122bd4032e2d4d2371d75658f81804c50e56c4edf2da01baaccccc7
                      index: 2
                      assets:
                        - unit: lovelace
                          amount: 1456673898
                        - unit: >-
                            2f2e0404310c106e2a260e8eb5a7e43f00cff42c667489d30e17981631373032363237323030303030
                          amount: 1
                      address: >-
                        addr1qx7tzh4qen0p50ntefz8yujwgqt7zulef6t6vrf7dq4xa82j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pqrkj6fh
                      datum: null
                      reference_script: null
                  reference_inputs: []
                  collateral_inputs:
                    - tx_hash: >-
                        c8fcd44cfa28d6cd9b58ff1cd8c5ce1dc4872ec2655fa723c58ef683610bdc4b
                      index: 2
                      assets:
                        - unit: lovelace
                          amount: 1455465782
                        - unit: >-
                            2f2e0404310c106e2a260e8eb5a7e43f00cff42c667489d30e17981631373032363237323030303030
                          amount: 1
                      address: >-
                        addr1qx7tzh4qen0p50ntefz8yujwgqt7zulef6t6vrf7dq4xa82j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pqrkj6fh
                      datum: null
                      reference_script: null
                  collateral_return:
                    tx_hash: >-
                      e33433bdc122bd4032e2d4d2371d75658f81804c50e56c4edf2da01baaccccc7
                    index: 3
                    assets:
                      - unit: lovelace
                        amount: 1450465782
                      - unit: >-
                          2f2e0404310c106e2a260e8eb5a7e43f00cff42c667489d30e17981631373032363237323030303030
                        amount: 1
                    address: >-
                      addr1qx7tzh4qen0p50ntefz8yujwgqt7zulef6t6vrf7dq4xa82j2c79gy9l76sdg0xwhd7r0c0kna0tycz4y5s6mlenh8pqrkj6fh
                    datum: null
                    reference_script: null
                  mint: []
                  invalid_before: 110764281
                  invalid_hereafter: 110765281
                  fee: 791884
                  deposit: 0
                  certificates:
                    stake_registrations: []
                    stake_deregistrations: []
                    stake_delegations: []
                    pool_registrations: []
                    pool_retirements: []
                    reg_certs: []
                    unreg_certs: []
                    vote_delegations: []
                    stake_vote_delegations: []
                    stake_reg_delegations: []
                    vote_reg_delegations: []
                    stake_vote_reg_delegations: []
                    auth_committee_hot_certs: []
                    resign_committee_cold_certs: []
                    reg_drep_certs: []
                    unreg_drep_certs: []
                    update_drep_certs: []
                    mir_transfers: []
                  withdrawals: []
                  additional_signers:
                    - bcb15ea0ccde1a3e6bca4472724e4017e173f94e97a60d3e682a6e9d
                  scripts_executed:
                    - hash: a65ca58a4e9c755fa830173d2a5caed458ac0c73f97db7faae2e7e3b
                      type: plutusv1
                      bytes: >-
                        59014c01000032323232323232322223232325333009300e300700213...
                      json: null
                    - hash: e1317b152faac13426e6a83e06ff88a4d62cce3c1634ab0a5ec13309
                      type: plutusv1
                      bytes: >-
                        591e18010000323232323232323232323232323232323232323232323...
                      json: null
                  scripts_successful: true
                  redeemers:
                    spends:
                      - script_hash: >-
                          a65ca58a4e9c755fa830173d2a5caed458ac0c73f97db7faae2e7e3b
                        input:
                          tx_hash: >-
                            498965c4ca9e705e0e4fa90c7b723b6bf5bcdf4362e4843c8b9bd54eaa73c9ad
                          index: 0
                        input_index: 0
                        data:
                          json:
                            fields: []
                          bytes: d87980
                        ex_units:
                          - 42061
                          - 14890343
                      - script_hash: >-
                          e1317b152faac13426e6a83e06ff88a4d62cce3c1634ab0a5ec13309
                        input:
                          tx_hash: >-
                            c22e28eb033ac63a549e65e0407d374c14bf5805b37f7c8a7b1a0770fe00c656
                          index: 0
                        input_index: 1
                        data:
                          json:
                            fields:
                              - fields:
                                  - fields:
                                      - bytes: >-
                                          bcb15ea0ccde1a3e6bca4472724e4017e173f94e97a60d3e682a6e9d
                                  - fields:
                                      - fields:
                                          - fields:
                                              - bytes: >-
                                                  52563c5410bff6a0d43ccebb7c37e1f69f5eb260552521adff33b9c2
                              - int: 2
                          bytes: >-
                            d8799fd8799fd8799f581cbcb15ea0ccde1a3e6bca4472724e40...
                        ex_units:
                          - 2639497
                          - 790336775
                    mints: []
                    withdrawals: []
                    certificates: []
                    votes: []
                    proposals: []
                  metadata:
                    '674':
                      msg:
                        - 'Minswap: Order Executed'
                  size: 9626
                last_updated:
                  timestamp: '2023-12-11 21:36:35'
                  block_hash: >-
                    58df3617b77c9b8da958c118c3daf9cabae86e31aca761fe9bb8d57b40fe14be
                  block_slot: 110764304
        '400':
          description: Malformed query parameters
        '404':
          description: No results found
        '500':
          description: Internal server error
components:
  schemas:
    TimestampedTransactionInfo:
      type: object
      description: >-
        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.
      required:
        - data
        - last_updated
      properties:
        data:
          $ref: '#/components/schemas/TransactionInfo'
        last_updated:
          $ref: '#/components/schemas/LastUpdated'
    TransactionInfo:
      type: object
      description: Transaction Information
      required:
        - tx_hash
        - block_hash
        - block_tx_index
        - block_height
        - block_timestamp
        - block_absolute_slot
        - block_epoch
        - inputs
        - outputs
        - reference_inputs
        - collateral_inputs
        - mint
        - fee
        - deposit
        - certificates
        - withdrawals
        - additional_signers
        - scripts_executed
        - scripts_successful
        - redeemers
        - size
      properties:
        additional_signers:
          type: array
          items:
            type: string
          description: Additional required signers
        block_absolute_slot:
          type: integer
          format: int64
          description: Absolute slot of the block which includes the transaction
          minimum: 0
        block_epoch:
          type: integer
          format: int64
          description: Epoch in which the block was minted in
          minimum: 0
        block_hash:
          type: string
          description: Hash of the block which includes the transaction
        block_height:
          type: integer
          format: int64
          description: Block height (number) of the block which includes the transaction
          minimum: 0
        block_timestamp:
          type: integer
          format: int64
          description: UNIX timestamp of the block which includes the transaction
          minimum: 0
        block_tx_index:
          type: integer
          format: int32
          description: The transaction's position within the block which includes it
          minimum: 0
        certificates:
          $ref: '#/components/schemas/Certificates'
        collateral_inputs:
          type: array
          items:
            $ref: '#/components/schemas/Utxo'
          description: Collateral inputs, to be taken if Plutus scripts are not successful
        collateral_return:
          allOf:
            - $ref: '#/components/schemas/Utxo'
          nullable: true
        deposit:
          type: integer
          format: int64
          description: >-
            The amount of lovelace used for deposits (negative if being
            returned)
        fee:
          type: integer
          format: int64
          description: The fee specified in the transaction
          minimum: 0
        inputs:
          type: array
          items:
            $ref: '#/components/schemas/Utxo'
          description: Transaction inputs (lexicographically sorted)
        invalid_before:
          type: integer
          format: int64
          description: >-
            The slot before which the transaction would not be accepted onto the
            chain
          nullable: true
          minimum: 0
        invalid_hereafter:
          type: integer
          format: int64
          description: >-
            The slot from which the transaction would not be accepted onto the
            chain
          nullable: true
          minimum: 0
        metadata:
          type: object
          description: Transaction metadata JSON
          nullable: true
        mint:
          type: array
          items:
            $ref: '#/components/schemas/MintAsset'
          description: Native assets minted or burned by the transaction
        outputs:
          type: array
          items:
            $ref: '#/components/schemas/Utxo'
          description: Transaction outputs
        redeemers:
          $ref: '#/components/schemas/Redeemers'
        reference_inputs:
          type: array
          items:
            $ref: '#/components/schemas/Utxo'
          description: Reference inputs
        scripts_executed:
          type: array
          items:
            $ref: '#/components/schemas/Script'
          description: >-
            Native and Plutus scripts which were executed while processing the
            transaction
        scripts_successful:
          type: boolean
          description: >-
            False if any executed Plutus scripts failed (aka phase-two
            validity), meaning collateral was processed.
        size:
          type: integer
          format: int64
          description: Size of the transaction in bytes
          minimum: 0
        tx_hash:
          type: string
          description: Transaction hash (identifier)
        withdrawals:
          type: array
          items:
            $ref: '#/components/schemas/Withdrawal'
          description: Stake account withdrawals
    LastUpdated:
      type: object
      description: >-
        Details of the most recent block processed by the indexer (aka chain
        tip); that is, the data returned is correct as of this block in time.
      required:
        - timestamp
        - block_hash
        - block_slot
      properties:
        block_hash:
          type: string
          description: >-
            Hex-encoded hash of the most recently processed block (aka chain
            tip)
        block_slot:
          type: integer
          format: int64
          description: Absolute slot of the most recently processed block (aka chain tip)
          minimum: 0
        timestamp:
          type: string
          description: UTC timestamp of when the most recently processed block was minted
    Certificates:
      type: object
      description: Certificates found in a transaction
      required:
        - stake_registrations
        - stake_deregistrations
        - stake_delegations
        - pool_registrations
        - pool_retirements
        - reg_certs
        - unreg_certs
        - vote_delegations
        - stake_vote_delegations
        - stake_reg_delegations
        - vote_reg_delegations
        - stake_vote_reg_delegations
        - auth_committee_hot_certs
        - resign_committee_cold_certs
        - reg_drep_certs
        - unreg_drep_certs
        - update_drep_certs
        - mir_transfers
      properties:
        auth_committee_hot_certs:
          type: array
          items:
            $ref: '#/components/schemas/AuthCommitteeHotCert'
        mir_transfers:
          type: array
          items:
            $ref: '#/components/schemas/MirCert'
          description: Instantaneous rewards certificates
        pool_registrations:
          type: array
          items:
            $ref: '#/components/schemas/PoolRegCert'
          description: Stake pool registration certificates
        pool_retirements:
          type: array
          items:
            $ref: '#/components/schemas/PoolRetireCert'
          description: Stake pool retirement certificates
        reg_certs:
          type: array
          items:
            $ref: '#/components/schemas/RegCert'
        reg_drep_certs:
          type: array
          items:
            $ref: '#/components/schemas/RegDRepCert'
        resign_committee_cold_certs:
          type: array
          items:
            $ref: '#/components/schemas/ResignCommitteeColdCert'
        stake_delegations:
          type: array
          items:
            $ref: '#/components/schemas/StakeDelegCert'
          description: Stake key delegation certificates
        stake_deregistrations:
          type: array
          items:
            $ref: '#/components/schemas/StakeRegCert'
          description: Stake key deregistration certificates
        stake_reg_delegations:
          type: array
          items:
            $ref: '#/components/schemas/StakeRegDelegCert'
        stake_registrations:
          type: array
          items:
            $ref: '#/components/schemas/StakeRegCert'
          description: Stake key registration certificates
        stake_vote_delegations:
          type: array
          items:
            $ref: '#/components/schemas/StakeVoteDelegCert'
        stake_vote_reg_delegations:
          type: array
          items:
            $ref: '#/components/schemas/StakeVoteRegDelegCert'
        unreg_certs:
          type: array
          items:
            $ref: '#/components/schemas/UnRegCert'
        unreg_drep_certs:
          type: array
          items:
            $ref: '#/components/schemas/UnRegDRepCert'
        update_drep_certs:
          type: array
          items:
            $ref: '#/components/schemas/UpdateDRepCert'
        vote_delegations:
          type: array
          items:
            $ref: '#/components/schemas/VoteDelegCert'
        vote_reg_delegations:
          type: array
          items:
            $ref: '#/components/schemas/VoteRegDelegCert'
    Utxo:
      type: object
      description: Transaction output
      required:
        - tx_hash
        - index
        - assets
        - address
      properties:
        address:
          type: string
          description: Address which controls the UTxO
        assets:
          type: array
          items:
            $ref: '#/components/schemas/Asset'
          description: List of assets contained in the UTxO
        datum:
          allOf:
            - $ref: '#/components/schemas/DatumOption'
          nullable: true
        index:
          type: integer
          format: int64
          description: UTxO transaction index
          minimum: 0
        reference_script:
          allOf:
            - $ref: '#/components/schemas/Script'
          nullable: true
        tx_hash:
          type: string
          description: UTxO transaction hash
    MintAsset:
      type: object
      description: Lovelace or native asset
      required:
        - unit
        - amount
      properties:
        amount:
          $ref: '#/components/schemas/NumOrString'
        unit:
          type: string
          description: >-
            Asset (represented as concatenation of hex encoded policy ID and
            asset name)
    Redeemers:
      type: object
      required:
        - spends
        - mints
        - withdrawals
        - certificates
        - votes
        - proposals
      properties:
        certificates:
          type: array
          items:
            $ref: '#/components/schemas/CertRedeemer'
          description: >-
            Redeemers attempting to delegate or deregister a script-controlled
            stake account
        mints:
          type: array
          items:
            $ref: '#/components/schemas/MintRedeemer'
          description: Redeemers attempting to mint assets of a script-controlled policy ID
        proposals:
          type: array
          items:
            $ref: '#/components/schemas/ProposalRedeemer'
          description: Redeemers attempting to submit a proposal
        spends:
          type: array
          items:
            $ref: '#/components/schemas/SpendRedeemer'
          description: Redeemers attempting to spend a UTxO locked at a script
        votes:
          type: array
          items:
            $ref: '#/components/schemas/VoteRedeemer'
          description: >-
            Redeemers attempting to cast a vote for a script-controlled stake
            account
        withdrawals:
          type: array
          items:
            $ref: '#/components/schemas/WdrlRedeemer'
          description: >-
            Redeemers attempting to withdraw rewards for a script-controlled
            stake account
    Script:
      type: object
      description: Details of a Native or Plutus script
      required:
        - hash
        - type
        - bytes
      properties:
        bytes:
          type: string
          description: Script bytes
        hash:
          type: string
          description: Script hash
        json:
          type: object
          description: >-
            JSON representation of script (`null` if script not of `native`
            type)
          nullable: true
        type:
          $ref: '#/components/schemas/ScriptType'
    Withdrawal:
      type: object
      required:
        - stake_address
        - amount
      properties:
        amount:
          $ref: '#/components/schemas/NumOrString'
        stake_address:
          type: string
    AuthCommitteeHotCert:
      type: object
      description: Authorizes the constitutional committee hot credential
      required:
        - cert_index
        - committee_cold_credential
        - committee_hot_credential
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        committee_cold_credential:
          type: string
        committee_hot_credential:
          type: string
    MirCert:
      type: object
      description: >-
        Certificate for sending an instantaneous reward (moving funds from
        treasury or reserves pot to the other pot or to stake accounts)
      required:
        - cert_index
        - from
        - to
      properties:
        accounts:
          type: array
          items:
            $ref: '#/components/schemas/Withdrawal'
          description: >-
            List of stake accounts with corresponding reward amounts (null if
            `to` is 'reserves' or 'treasury')
          nullable: true
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        from:
          $ref: '#/components/schemas/MirSource'
        other_pot:
          type: integer
          format: int64
          description: Amount transfered to the other pot (null if `to` is 'accounts')
          nullable: true
          minimum: 0
        to:
          $ref: '#/components/schemas/MirTarget'
    PoolRegCert:
      type: object
      description: Certificate for registering or updating a stake pool
      required:
        - cert_index
        - pool_id
        - from_epoch
        - vrf_key_hash
        - margin
        - fixed_cost
        - pledge
        - reward_address
        - owner_addresses
        - relays
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        fixed_cost:
          $ref: '#/components/schemas/NumOrString'
        from_epoch:
          type: integer
          format: int64
          description: Epoch at which the update will become active
          minimum: 0
        margin:
          $ref: '#/components/schemas/NumOrString'
        metadata_hash:
          type: string
          description: Hash of metadata that the metadata URL should point to
          nullable: true
        metadata_url:
          type: string
          description: URL pointing to pool metadata declared by the stake pool
          nullable: true
        owner_addresses:
          type: array
          items:
            type: string
          description: Stake addresses which control the stake pool
        pledge:
          $ref: '#/components/schemas/NumOrString'
        pool_id:
          type: string
          description: Pool ID of the stake pool being updated
        relays:
          type: array
          items:
            $ref: '#/components/schemas/Relay'
          description: Relays declared by the stake pool
        reward_address:
          type: string
          description: Stake address which will receive rewards from the stake pool
        vrf_key_hash:
          type: string
          description: VRF key hash of the stake pool
    PoolRetireCert:
      type: object
      description: Certificate for retiring a stake pool
      required:
        - cert_index
        - pool_id
        - after_epoch
      properties:
        after_epoch:
          type: integer
          format: int32
          description: Pool will be retired at the end of this epoch
          minimum: 0
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        pool_id:
          type: string
          description: Bech32 pool ID of the pool being retired
    RegCert:
      type: object
      description: Registers stake credentials
      required:
        - cert_index
        - stake_address
        - deposit
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        deposit:
          type: string
          description: Stake registration deposit
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    RegDRepCert:
      type: object
      description: Registers DRep's credentials
      required:
        - cert_index
        - drep_credential
        - deposit
      properties:
        anchor:
          allOf:
            - $ref: '#/components/schemas/Anchor'
          nullable: true
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        deposit:
          type: string
          description: Registration deposit
        drep_credential:
          $ref: '#/components/schemas/DRepCredential'
    ResignCommitteeColdCert:
      type: object
      description: Authorizes the constitutional committee hot credential
      required:
        - cert_index
        - committee_cold_credential
      properties:
        anchor:
          allOf:
            - $ref: '#/components/schemas/Anchor'
          nullable: true
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        committee_cold_credential:
          type: string
    StakeDelegCert:
      type: object
      description: Certificate for stake key delegation
      required:
        - cert_index
        - stake_address
        - pool_id
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        pool_id:
          type: string
          description: Pool ID of the stake pool the stake key is delegating to
        stake_address:
          type: string
          description: Stake address corresponding to stake key being delegated
    StakeRegCert:
      type: object
      description: Certificate for registering a stake key
      required:
        - cert_index
        - stake_address
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    StakeRegDelegCert:
      type: object
      description: Registers stake credentials and delegates to a stake pool
      required:
        - cert_index
        - stake_address
        - pool_id
        - deposit
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        deposit:
          type: string
          description: Stake registration deposit
        pool_id:
          type: string
          description: Pool ID of the stake pool the stake key is delegating to
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    StakeVoteDelegCert:
      type: object
      description: Delegates to a stake pool and a DRep from the same certificate
      required:
        - cert_index
        - stake_address
        - pool_id
        - drep
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        drep:
          $ref: '#/components/schemas/DRep'
        pool_id:
          type: string
          description: Pool ID of the stake pool the stake key is delegating to
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    StakeVoteRegDelegCert:
      type: object
      description: Registers stake credentials, delegates to a pool, and to a DRep
      required:
        - cert_index
        - stake_address
        - pool_id
        - drep
        - deposit
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        deposit:
          type: string
          description: Stake registration deposit
        drep:
          $ref: '#/components/schemas/DRep'
        pool_id:
          type: string
          description: Pool ID of the stake pool the stake key is delegating to
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    UnRegCert:
      type: object
      description: Unregisters stake credentials
      required:
        - cert_index
        - stake_address
        - deposit
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        deposit:
          type: string
          description: Stake registration deposit to be returned
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    UnRegDRepCert:
      type: object
      description: Unregisters (retires) DRep's credentials
      required:
        - cert_index
        - drep_credential
        - deposit
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        deposit:
          type: string
          description: Registration deposit to be returned
        drep_credential:
          $ref: '#/components/schemas/DRepCredential'
    UpdateDRepCert:
      type: object
      description: Unregisters (retires) DRep's credentials
      required:
        - cert_index
        - drep_credential
      properties:
        anchor:
          allOf:
            - $ref: '#/components/schemas/Anchor'
          nullable: true
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        drep_credential:
          $ref: '#/components/schemas/DRepCredential'
    VoteDelegCert:
      type: object
      description: Delegates votes
      required:
        - cert_index
        - stake_address
        - drep
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        drep:
          $ref: '#/components/schemas/DRep'
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    VoteRegDelegCert:
      type: object
      description: Registers stake credentials and delegates to a DRep
      required:
        - cert_index
        - stake_address
        - drep
        - deposit
      properties:
        cert_index:
          type: integer
          format: int64
          description: Index of the certificate in the transaction
          minimum: 0
        deposit:
          type: string
          description: Stake registration deposit
        drep:
          $ref: '#/components/schemas/DRep'
        stake_address:
          type: string
          description: Stake address corresponding to stake key being updated
    Asset:
      type: object
      description: Lovelace or native asset
      required:
        - unit
        - amount
      properties:
        amount:
          $ref: '#/components/schemas/NumOrString'
        unit:
          type: string
          description: >-
            Asset (either `lovelace` or concatenation of hex encoded policy ID
            and asset name for native asset)
    DatumOption:
      type: object
      description: Datum (inline or hash)
      required:
        - type
        - hash
      properties:
        bytes:
          type: string
          description: >-
            Hex encoded datum CBOR bytes (`null` if datum type is `hash` and
            corresponding datum bytes have not been seen on-chain)
          nullable: true
        hash:
          type: string
          description: Datum hash
        json:
          type: object
          description: >-
            JSON representation of the datum (`null` if datum type is `hash` and
            corresponding datum bytes have not been seen on-chain)
          nullable: true
        type:
          $ref: '#/components/schemas/DatumOptionType'
    NumOrString:
      oneOf:
        - type: integer
          format: int64
          description: Unsigned 64-bit integer
          minimum: 0
        - type: integer
          description: Unsigned 128-bit integer
          minimum: 0
        - type: integer
          format: int64
          description: Signed 64-bit integer
        - type: number
          format: double
          description: 64-bit floating point number
        - type: string
          description: String representation of an integer or number
      description: >-
        Integer or number by default, or a string representation if the
        `amounts-as-strings` header is set to `true`
    CertRedeemer:
      type: object
      required:
        - cert_index
        - data
        - ex_units
      properties:
        cert_index:
          type: integer
          description: >-
            Position of certificate redeemer attempting to authenticate in
            sorted certificates
          minimum: 0
        data:
          $ref: '#/components/schemas/Datum'
        ex_units:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          description: Execution unit budget (memory, steps)
    MintRedeemer:
      type: object
      required:
        - policy
        - data
        - ex_units
      properties:
        data:
          $ref: '#/components/schemas/Datum'
        ex_units:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          description: Execution unit budget (memory, steps)
        policy:
          type: string
          description: Asset policy (hash of script being executed)
    ProposalRedeemer:
      type: object
      required:
        - proposal_index
        - data
        - ex_units
      properties:
        data:
          $ref: '#/components/schemas/Datum'
        ex_units:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          description: Execution unit budget (memory, steps)
        proposal_index:
          type: integer
          description: Index of the relevant proposal
          minimum: 0
    SpendRedeemer:
      type: object
      required:
        - script_hash
        - input
        - input_index
        - data
        - ex_units
      properties:
        data:
          $ref: '#/components/schemas/Datum'
        ex_units:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          description: Execution unit budget (memory, steps)
        input:
          type: object
          description: UTxO reference (transaction hash and output index)
          required:
            - tx_hash
            - index
          properties:
            index:
              type: integer
              format: int64
              description: UTxO transaction index
              minimum: 0
            tx_hash:
              type: string
              description: UTxO transaction hash
        input_index:
          type: integer
          description: >-
            Position of input within the lexicographically sorted transaction
            inputs
          minimum: 0
        script_hash:
          type: string
          description: Script being executed
    VoteRedeemer:
      type: object
      required:
        - vote_index
        - data
        - ex_units
      properties:
        data:
          $ref: '#/components/schemas/Datum'
        ex_units:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          description: Execution unit budget (memory, steps)
        vote_index:
          type: integer
          description: Index of relevant vote in sorted votes
          minimum: 0
    WdrlRedeemer:
      type: object
      required:
        - stake_address
        - data
        - ex_units
      properties:
        data:
          $ref: '#/components/schemas/Datum'
        ex_units:
          type: array
          items:
            type: integer
            format: int64
            minimum: 0
          description: Execution unit budget (memory, steps)
        stake_address:
          type: string
          description: >-
            Stake account that the redeemer is attempting to withdraw rewards
            from
    ScriptType:
      type: string
      description: Script type and version
      enum:
        - native
        - plutusv1
        - plutusv2
        - plutusv3
    MirSource:
      type: string
      description: The pot from which an MIR reward is being funded by
      enum:
        - reserves
        - treasury
    MirTarget:
      type: string
      description: Where the MIR reward(s) are being sent
      enum:
        - reserves
        - treasury
        - accounts
    Relay:
      type: object
      description: Stake pool relay
      properties:
        dns:
          type: string
          nullable: true
        ipv4:
          type: string
          nullable: true
        ipv6:
          type: string
          nullable: true
        port:
          type: integer
          format: int32
          nullable: true
        srv:
          type: string
          nullable: true
    Anchor:
      type: object
      required:
        - url
        - content_hash
      properties:
        content_hash:
          type: string
          description: Hash of data at URL
        url:
          type: string
          description: URL
    DRepCredential:
      type: object
      description: Payment credential, the payment part of a Cardano address
      required:
        - kind
        - bech32
        - hex
      properties:
        bech32:
          type: string
          description: Bech32-encoding of the credential key hash or script hash
        hex:
          type: string
          description: Hex-encoding of the script or key credential
        kind:
          $ref: '#/components/schemas/DRepCredKind'
    DRep:
      type: object
      description: DRep
      required:
        - kind
      properties:
        credential:
          allOf:
            - $ref: '#/components/schemas/DRepCredential'
          nullable: true
        kind:
          $ref: '#/components/schemas/DRepKind'
    DatumOptionType:
      type: string
      description: Datum type (inline datum or datum hash)
      enum:
        - hash
        - inline
    Datum:
      type: object
      required:
        - bytes
      properties:
        bytes:
          type: string
          description: Hex encoded datum CBOR bytes
        json:
          type: object
          description: JSON representation of the datum
          nullable: true
    DRepCredKind:
      type: string
      enum:
        - key
        - script
    DRepKind:
      type: string
      enum:
        - credential
        - abstain
        - no_confidence
  securitySchemes:
    api-key:
      type: apiKey
      in: header
      name: api-key
      description: Project API Key

````