Skip to main content
The Uniswap V4 Hooks table records each Uniswap v4 pool at initialization along with the hook contract bound to it. Hooks are external contracts that Uniswap v4 calls at specific points in a pool’s lifecycle (before/after swap, liquidity changes, etc.); the enabled callbacks are encoded in the hook address’s permission bits and decoded here into hook_signatures.

Table Columns

Column NameData TypeDescription
pool_managerVARCHARAddress of the Uniswap v4 PoolManager singleton contract that manages this pool
hook_contractVARCHARAddress of the hook contract attached to the pool
hook_intVARCHARInteger-encoded bitmap of the hook permission flags enabled for this hook contract
hook_signaturesVARIANTDecoded list of hook callback functions (e.g. beforeSwap, afterSwap) enabled by the hook’s permission flags
hook_parametersVARIANTParsed parameters associated with the hook’s enabled callbacks
currency0VARCHARAddress of the first token in the pool’s currency pair (lower-sorted). The zero address denotes native currency
currency1VARCHARAddress of the second token in the pool’s currency pair (higher-sorted)
idVARCHARPool ID: keccak256 hash of the pool key (currency0, currency1, fee, tick_spacing, hooks) uniquely identifying it
feeNUMBERSwap fee tier of the pool, in hundredths of a basis point (e.g. 3000 = 0.30%)
tick_spacingNUMBERMinimum tick granularity for liquidity positions in the pool
paramsVARIANTRaw pool key parameters emitted when the pool was initialized
deployerVARCHARAddress that initialized the pool
transaction_hashVARCHARTransaction hash of the pool initialization
transaction_indexNUMBERIndex of the transaction within its block
transaction_from_addressVARCHARAddress that sent the transaction
transaction_to_addressVARCHARAddress the transaction was sent to (typically the PoolManager)
log_indexNUMBERIndex of the log within the transaction
block_timestampTIMESTAMP_NTZ(9)Timestamp (UTC) of the block containing this record
block_numberNUMBERNumber of the block containing this record
block_hashVARCHARHash of the block containing this record