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

# Transactions

### Table Details

| Property | Value |
| - | - |
| Table Name | `ritual.raw.transactions` |
| Table Status | Production-Ready |
| Unique Key | `block_number`, `hash` |
| Clustering Key(s) | `to_date("block_timestamp")` |
| Search Optimization | `hash`, `block_number`, `from_address`, `to_address` |

### Table Columns

| Column Name | Data Type | Description |
| - | - | - |
| hash | VARCHAR(66) | Unique identifier of a transaction. |
| nonce | NUMBER(38,0) | [The transaction nonce, unique to the wallet](https://ethereum.org/en/glossary/#nonce) |
| transaction\_index | NUMBER(38,0) | The position of this transaction in the block that it belongs to. The first transaction has index 0. |
| from\_address | VARCHAR(42) | The address of the sending party of this transaction. |
| to\_address | VARCHAR(42) | The address of the receiving party of this transaction (could be a contract address). |
| value | NUMBER(38,0) | The amount of ether sent in this transaction, in wei. |
| gas | NUMBER(38,0) | The maximum amount of gas allocated for this transaction in wei. |
| gas\_price | NUMBER(38,0) | Cost per unit of gas specified by the transaction in wei. The higher the gas price, the higher chance of getting included in a block. |
| input | VARCHAR(16777216) | The data sent along with the transaction. |
| receipt\_cumulative\_gas\_used | NUMBER(38,0) | The total amount of gas used when this transaction was executed in the block. |
| receipt\_gas\_used | NUMBER(38,0) | The total amount of gas consumed by a transaction as recorded in its receipt |
| receipt\_contract\_address | VARCHAR(42) | The contract address created, if the transaction was a contract creation, otherwise null. |
| receipt\_root | VARCHAR(66) | Transaction stateroot (pre Byzantium). |
| receipt\_status | NUMBER(38,0) | Success status of the transaction. Either 1 (success) or 0 (failure). |
| block\_timestamp\_ms | VARCHAR(16777216) | The block timestamp in milliseconds since Unix epoch (string-encoded), providing higher precision than `block_timestamp`. |
| block\_timestamp | TIMESTAMP\_NTZ(9) | The time when the block that contains this transaction was included on the blockchain. |
| block\_number | NUMBER(38,0) | The length of the chain, in blocks. |
| block\_hash | VARCHAR(66) | Unique identifier of the block that includes this transaction. |
| max\_fee\_per\_gas | NUMBER(38,0) | [The maximum fee per gas that the transaction sender is willing to pay for this transaction (introduced in EIP1559)](https://eips.ethereum.org/EIPS/eip-1559) |
| max\_priority\_fee\_per\_gas | NUMBER(38,0) | [The maximum fee per gas the transaction sender is willing to give to validators (Proof of Stake) or miners (Proof of Work) to incentivize them to include their transaction (introduced in EIP1559)](https://eips.ethereum.org/EIPS/eip-1559) |
| transaction\_type | NUMBER(38,0) | The integer of the transaction type, 0x0 for legacy transactions, 0x1 for access list types, 0x2 for dynamic fees. |
| receipt\_effective\_gas\_price | NUMBER(38,0) | The sum of the base fee and tip paid per unit of gas. |
| log\_count | NUMBER(38,0) | Number of event logs emitted in the transaction. |
| y\_parity | NUMBER(38,0) | The parity (0 or 1) of the y-coordinate of the curve point for the signature's recovery identifier. |
| access\_list | VARIANT | A list of addresses and storage keys that the transaction plans to access, introduced in EIP-2930 to help optimize gas costs. |
| commitment\_validator | VARCHAR(42) | Validator responsible for committing the result. |
| executor\_address | VARCHAR(42) | Address of the node/validator that executed the AI workload. |
| origin\_tx | VARCHAR(66) | The original transaction that initiated this Ritual workflow. |
| origin\_tx\_rlp | VARCHAR(16777216) | RLP encoding of the original transaction that initiated this Ritual workflow. |
| precompile\_address | VARCHAR(42) | Address of the Ritual precompile invoked for the AI operation. |
| precompile\_input | VARCHAR(16777216) | Input data passed to the precompile (model id, prompt, etc.). |
| receipt\_executor\_address | VARCHAR(42) | Same as `executor_address` but as recorded in the transaction receipt (post-execution state). |
| receipt\_original\_tx | VARCHAR(66) | Same as `origin_tx` but as recorded in the transaction receipt (post-execution state). |
| receipt\_precompile\_address | VARCHAR(42) | Same as `precompile_address` but as recorded in the transaction receipt (post-execution state). |
| receipt\_precompile\_input | VARCHAR(16777216) | Same as `precompile_input` but as recorded in the transaction receipt (post-execution state). |
| ttl | NUMBER(38,0) | Time-to-live for the Ritual call (in blocks or seconds). |
| \_created\_at | TIMESTAMP\_NTZ(9) | Timestamp of the entry creation. |
| \_updated\_at | TIMESTAMP\_NTZ(9) | Timestamp of the entry update. |

### Related Docs

* [EVM Raw Transactions](https://docs.allium.so/historical-data/supported-blockchains/evm/core-schemas/raw/transactions.md)
