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

# dune.lens.publication_reference_module

> Lens reference modules — comment and mirror permission configurations.

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>
  </>;

<Warning>
  **Deprecation Notice**: Lens data ingestion has been discontinued as of December 2025. Only historical data is available, and no new data will be added.
</Warning>

## Table description

The `dune.lens.publication_reference_module` table holds any reference modules that have been attached to a publication.

## Table Schema

| Column Name | Type | Description |
| - | - | - |
| publication\_id | varchar | Publication ID the module is attached to (format: `profileId-pubId`) |
| implementation | varbinary | Contract address of the reference module |
| init\_data | varbinary | Encoded initialization data passed to the module |
| comments\_restricted | boolean | Whether commenting is restricted by this module |
| mirrors\_restricted | boolean | Whether mirroring is restricted by this module |
| degrees\_of\_separation | integer | Maximum degrees of separation allowed for interaction |
| block\_timestamp | timestamp | Timestamp of the block |
| block\_hash | varbinary | Hash of the block containing the transaction |
| quotes\_restricted | boolean | Whether quoting is restricted by this module |
| source\_profile\_id | varbinary | Profile ID from which degrees of separation are measured |
| followers\_only | boolean | Whether interactions are limited to followers only |
| init\_return\_data | varbinary | Data returned by the module after initialization |
| tx\_hash | varbinary | Transaction hash of the module setup |
| log\_index | integer | Index of the event log within the transaction |
| tx\_index | integer | Index of the transaction within the block |
| block\_number | integer | Block number of the transaction |

## Table Sample

<TableSample tableSchema="dune.lens" tableName="publication_reference_module" />


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