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

# tron.contracts

> Verified contract registry on Tron — contract name, ABI, and deployment details.

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 `tron.contracts` table contains information about the contracts Dune has decoded on the Tron blockchain.

You can use this table to find information about the contracts that have been decoded by Dune.

## Table Schema

| Column            | Type           | Description                                                                                           |
| ----------------- | -------------- | ----------------------------------------------------------------------------------------------------- |
| abi\_id           | varchar        | Unique identifier for the contract's ABI definition                                                   |
| abi               | array(varchar) | The full ABI (Application Binary Interface) of the contract as an array of function/event definitions |
| address           | varbinary      | The contract's deployment address on the Tron blockchain                                              |
| from              | varbinary      | Address of the account that deployed this contract                                                    |
| code              | varbinary      | The bytecode of the deployed contract                                                                 |
| name              | varchar        | Human-readable name of the contract (e.g. "SunswapV2Router")                                          |
| namespace         | varchar        | Project or protocol namespace the contract belongs to (e.g. "sunswapv2")                              |
| dynamic           | boolean        | Whether the contract was dynamically decoded via ABI matching                                         |
| base              | boolean        | Whether this is a base contract (not created by a factory)                                            |
| factory           | boolean        | Whether this contract was created by a factory contract                                               |
| detection\_source | varchar        | How the contract was detected and added to Dune's decoded set (e.g. "base", "factory")                |
| created\_at       | timestamp(3)   | Timestamp when this record was created in Dune's database                                             |

## Table Sample

<TableSample tableSchema="tron" tableName="contracts" />
