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

# cardano.transaction

> Description of the transaction table on Dune

export const TableSample = ({tableName, tableSchema}) => <>
    <div className="hidden dark:block">
      <iframe src={`https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=${tableSchema}&table_name_t6f0df=${tableName}&darkMode=true`} style={{
  width: '100%',
  height: '500px',
  border: 'none',
  marginTop: '10px'
}} />
    </div>
    <div className="dark:hidden">
      <iframe src={`https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=${tableSchema}&table_name_t6f0df=${tableName}`} style={{
  width: '100%',
  height: '500px',
  border: 'none',
  marginTop: '10px'
}} />
    </div>
  </>;

## Table Description

Contains transaction-level data for the Cardano blockchain. Each row represents a single transaction and includes fee information, validity status, input/output counts, and references to collateral and script data.

## Column Descriptions

| **Column**                       | **Description**                                                                         | **Type**  |
| -------------------------------- | --------------------------------------------------------------------------------------- | --------- |
| **tx\_hash**                     | The hash uniquely identifying the transaction.                                          | varchar   |
| **block\_hash**                  | The hash of the block containing this transaction.                                      | varchar   |
| **block\_number**                | The sequential number of the block containing this transaction.                         | bigint    |
| **slot**                         | The absolute slot number of the block containing this transaction.                      | bigint    |
| **epoch**                        | The epoch number in which the transaction was included.                                 | integer   |
| **block\_time**                  | The timestamp of the block containing this transaction.                                 | timestamp |
| **tx\_index**                    | The index position of the transaction within the block.                                 | integer   |
| **fee\_lovelace**                | The fee paid for the transaction, in lovelace.                                          | bigint    |
| **is\_invalid**                  | Whether the transaction failed phase-2 validation (script execution).                   | boolean   |
| **script\_data\_hash**           | The hash of the script-related data (datums and redeemers) included in the transaction. | varchar   |
| **total\_collateral\_lovelace**  | The total collateral provided for script execution, in lovelace.                        | bigint    |
| **treasury\_donation\_lovelace** | The amount donated to the Cardano treasury, in lovelace.                                | bigint    |
| **inputs**                       | JSON array of transaction inputs (UTXOs consumed).                                      | varchar   |
| **outputs**                      | JSON array of transaction outputs (UTXOs created).                                      | varchar   |
| **reference\_inputs**            | JSON array of reference inputs used for read-only access to UTXOs.                      | varchar   |
| **collateral\_inputs**           | JSON array of collateral inputs used in case of script failure.                         | varchar   |
| **input\_count**                 | The number of inputs consumed by the transaction.                                       | bigint    |
| **output\_count**                | The number of outputs produced by the transaction.                                      | bigint    |
| **\_updated\_at**                | The time when this record was last updated.                                             | timestamp |
| **\_ingested\_at**               | The time when this record was ingested into Dune.                                       | timestamp |

## Table Sample

<TableSample tableSchema="cardano" tableName="transaction" />
