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

# Contract Actions

> Midnight contract actions data

# Table Description

This table contains smart contract actions on Midnight, including contract address, action variant, and attributes.

## Column Descriptions

| Column Name | Data Type | Description |
| - | - | - |
| **id** | bigint | Internal contract action identifier. |
| **transaction\_id** | bigint | Foreign key to `midnight.transactions.id`. |
| **variant** | varchar | Contract action variant / type. |
| **address** | varchar | Contract address. |
| **attributes\_json** | varchar | Action attributes encoded as JSON. |
| **action\_ordinal** | bigint | Ordinal position of the action within the transaction. |
| **\_updated\_at** | timestamp | Timestamp when this record was last updated. |
| **\_ingested\_at** | timestamp | Timestamp when this record was ingested into Dune. |

## Table Sample

[https://dune.com/embeds/3419983/5785629?table\_schema\_t6f0df=midnight\&table\_name\_t6f0df=contract\_actions](https://dune.com/embeds/3419983/5785629?table_schema_t6f0df=midnight\&table_name_t6f0df=contract_actions)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.