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

# stellar.contract_data

> Stellar Soroban smart contract data entries.

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

The `stellar.contract_data` table stores state data for smart contracts, including supported tokens and storage costs.

## Column Descriptions

| **Column** | **Description** | **Type** |
| - | - | - |
| **closed\_at\_date** | The date when the contract data entry was closed. | date |
| **contract\_id** | The unique identifier for the smart contract on the Stellar network. | varchar |
| **contract\_key\_type** | The type of key used for the contract data (e.g., a hash or other identifier). | varchar |
| **contract\_durability** | Indicates whether the contract data is durable across contract executions. | varchar |
| **asset\_code** | The code of the asset associated with the contract (if applicable). | varchar |
| **asset\_issuer** | The issuer of the asset associated with the contract (if applicable). | varchar |
| **asset\_type** | The type of asset associated with the contract (e.g., native, issued). | varchar |
| **balance\_holder** | The account or entity that holds the balance associated with the contract. | varchar |
| **balance** | The balance associated with the contract, in lumens or other tokens. | varchar |
| **last\_modified\_ledger** | The ledger sequence number where the contract data was last modified. | bigint |
| **ledger\_entry\_change** | Indicates the type of change made to the ledger entry (insert, update, delete). | bigint |
| **deleted** | A boolean indicating whether the contract data entry has been deleted. | boolean |
| **closed\_at** | The timestamp when the contract data was closed. | timestamp(3) with time zone |
| **ledger\_sequence** | The sequence number of the ledger in which the contract data is included. | bigint |
| **ledger\_key\_hash** | The hashed key associated with the contract's ledger entry. | varbinary |
| **key** | The key used in the contract data entry. | varchar |
| **key\_decoded** | A human-readable or decoded version of the contract key. | varchar |
| **val** | The value stored in the contract data entry. | varchar |
| **val\_decoded** | A human-readable or decoded version of the value stored in the contract. | varchar |
| **contract\_data\_xdr** | The raw XDR (External Data Representation) format of the contract data. | varchar |
| **updated\_at** | The time when the contract data record was last updated. | timestamp(3) with time zone |
| **ingested\_at** | The time when the contract data was ingested into the system. | timestamp(3) with time zone |

## Table Sample

<TableSample tableSchema="stellar" tableName="contract_data" />


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