> ## 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.

# Instructions

An [instruction](https://solana.com/docs/terminology#instruction) is the smallest execution logic on Solana. Instructions are basically a call to update the global Solana state.

Instructions invoke programs that make calls to the Solana runtime to update the state (for example, calling the token program to transfer tokens from your account to another account).

### Table Details

| Property | Value |
| - | - |
| Table Name | `solana.raw.instructions` |
| Table Status | Production-Ready |
| Unique Key | `block_timestamp`, `txn_id`, `instruction_index` |
| Clustering Key(s) | `to_date("block_timestamp"), parent_tx_success` |
| Search Optimization | `txn_id`, `txn_index`, `instruction_index`, `program_id`, `is_voting`, `program_name`, `data_hex_first16`, `data_hex_first2` |

### Table Columns

| Column Name | Data Type | Description |
| - | - | - |
| block\_slot | NUMBER(38,0) | Solana slot number in which this transaction was confirmed. Slots are the fundamental unit of time on Solana (analogous to block numbers on EVM chains). Not every slot produces a block. |
| block\_height | NUMBER(38,0) | Number of confirmed blocks between this block and the genesis block (inclusive). Unlike `block_slot`, this only increments for slots that produced a block. |
| block\_timestamp | TIMESTAMP\_NTZ(9) | Timestamp (UTC) of the block that contains this record. |
| block\_hash | VARCHAR(16777216) | Cryptographic hash of the block header that contains this record. Uniquely identifies a block. |
| txn\_id | VARCHAR(16777216) | Base58-encoded transaction signature on Solana. Analogous to `transaction_hash` on EVM chains. Uniquely identifies a transaction. |
| txn\_index | NUMBER(38,0) | Zero-based position of this transaction within its slot. |
| instruction\_index | NUMBER(38,0) | Zero-based position of this instruction within the transaction's top-level instructions array. |
| program\_id | VARCHAR(16777216) | Base58-encoded public key of the Solana program that processed this instruction (e.g. `TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA` for SPL Token). |
| parsed | VARCHAR(16777216) | Parsed decoded representation of this instruction as JSON when the program IDL is known |
| program\_name | VARCHAR(16777216) | Human-readable name of the Solana program (e.g. "spl\_token", "system\_program", "jupiter\_v6"). Resolved from Allium's program registry. |
| accounts | VARIANT | Array of account addresses referenced by this instruction |
| data | VARCHAR(16777216) | ABI-encoded non-indexed parameters of an event log, or the calldata of a transaction/trace. Decode using the relevant ABI to extract individual field values. |
| parsed\_type | VARCHAR(16777216) | Type name of the parsed instruction (e.g., transfer, mintTo, createAccount) |
| is\_voting | BOOLEAN | True if this transaction is a validator vote transaction |
| parent\_tx\_success | BOOLEAN | True if the parent transaction of this inner instruction succeeded |
| parent\_tx\_signer | VARCHAR(16777216) | Fee payer address of the parent transaction that spawned this inner instruction |
| \_created\_at | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was created in the database. |
| \_updated\_at | TIMESTAMP\_NTZ(9) | Timestamp of when the entry was last updated in the database. |
| inner\_instruction\_count | NUMBER(38,0) | Number of inner (CPI) instructions invoked by this transaction |
| data\_hex | VARCHAR(16777216) | Instruction data as a hexadecimal string |
| data\_hex\_first16 | VARCHAR(16777216) | First 16 bytes of instruction data as hex, used for instruction type identification |
| data\_hex\_first2 | VARCHAR(16777216) | First 2 bytes of instruction data as hex |
| stack\_height | NUMBER(38,0) | Nesting depth of this instruction (1 for top-level instructions, incrementing for each level of inner instructions). |
| \_extra\_fields | VARIANT | JSON string with platform-specific metadata. |
