Ir diretamente para o conteúdo principal

Schema Reference

Atualizado em
Apr 02, 2026

Visão geral

This page provides a complete schema reference for all tables available in SQL Explorer. Each table includes column names, data types, sort keys, and partition strategies.

Hyperliquid (HyperCore)

SQL Explorer provides comprehensive coverage of Hyperliquid HyperCore with billions of rows of indexed data across multiple tables.

Cluster ID: hyperliquid-core-mainnet Use this cluster ID when making API requests to query Hyperliquid data via the REST API.

How to Use This Reference


  • Sort Keys (⚡): Columns marked as sort keys are indexed for fast queries. Include these in WHERE clauses for best performance.
  • Partition Strategy: Tables are partitioned by time (usually toYYYYMM(block_time)). Filter on time ranges to scan fewer partitions.
  • Column Types: Data types are shown exactly as stored (e.g., UInt64, Decimal(38, 18), DateTime64(6, 'UTC')).
▶ Complete Schema for All Tables (Click to expand)

Detailed schema for all Hyperliquid tables including column names, data types, sort keys (⚡), and partition strategies.

hyperliquid_agents

Sort Keys: ⚡ block_number, agent | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
agentFixedString(42)Sim
block_numberUInt64Sim
indexed_atDateTime64(3, 'UTC')No
nomeStringNo
snapshot_timeDateTime64(6, 'UTC')No
userFixedString(42)No
valid_untilStringNo

hyperliquid_asset_transfers

Sort Keys: ⚡ block_number, tx_hash, user | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
montanteNullable(Decimal(38, 18))No
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
destinationNullable(FixedString(42))No
feeNullable(Decimal(38, 18))No
indexed_atDateTime64(3, 'UTC')No
nonceNullable(UInt64)No
tempoDateTime64(6, 'UTC')No
tokenNullable(String)No
transfer_typeLowCardinality(String)No
tx_hashFixedString(66)Sim
usdc_amountNullable(Decimal(38, 18))No
userFixedString(42)Sim

hyperliquid_blocks

Sort Keys: ⚡ block_number | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
book_diffs_countUInt32No
fills_countUInt32No
indexed_atDateTime64(3, 'UTC')No
misc_events_countUInt32No
orders_countUInt32No
twap_statuses_countUInt32No
writer_actions_countUInt32No

hyperliquid_bridge

Sort Keys: ⚡ block_number, bridge_type, user, nonce, eth_block_number, tx_hash | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
amount_weiUInt64No
block_numberUInt64Sim
bridge_typeLowCardinality(String)Sim
eth_block_numberUInt64Sim
event_timeStringNo
indexed_atDateTime64(3, 'UTC')No
nonceUInt64Sim
snapshot_timeDateTime64(6, 'UTC')No
tx_hashStringSim
userFixedString(42)Sim

hyperliquid_builder_fills

Sort Keys: ⚡ builder_address, timestamp, tid | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64No
block_timeDateTime64(6, 'UTC')No
builder_addressNullable(FixedString(42))Sim
builder_feeNullable(Decimal(38, 18))No
cloidNullable(String)No
closed_pnlDecimal(38, 18)No
moedaLowCardinality(String)No
created_atDateTime64(6, 'UTC')No
crossedUInt8No
dirLowCardinality(String)No
feeDecimal(38, 18)No
hashFixedString(66)No
indexed_atDateTime64(3, 'UTC')No
is_liquidationUInt8No
liquidated_userNullable(FixedString(42))No
liquidation_mark_priceNullable(Decimal(38, 18))No
liquidation_methodNullable(String)No
oidUInt64No
preçoDecimal(38, 18)No
ladoEnum8('B' = 1, 'A' = 2)No
tamanhoDecimal(38, 18)No
start_positionDecimal(38, 18)No
tidUInt64Sim
data e horaDateTime64(3, 'UTC')Sim
twap_idNullable(UInt64)No
updated_atDateTime64(6, 'UTC')No
userFixedString(42)No

hyperliquid_builder_transactions

Sort Keys: ⚡ block_number, hash, user | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
action_typeLowCardinality(String)No
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
builderStringNo
builder_feeNullable(Decimal(38, 18))No
moedaNullable(String)No
hashStringSim
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
userStringSim

hyperliquid_clearinghouse_states

Sort Keys: ⚡ block_number, clearinghouse, user, asset_idx | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
asset_idxUInt16Sim
block_numberUInt64Sim
clearinghouseUInt8Sim
moedaLowCardinality(String)No
entry_notionalUInt64No
funding_alltimeInt64No
funding_since_changeInt64No
funding_since_openInt64No
indexed_atDateTime64(3, 'UTC')No
marginUInt64No
tamanhoInt64No
snapshot_timeDateTime64(6, 'UTC')No
usdc_balanceInt64No
userFixedString(42)Sim

hyperliquid_delegator_rewards

Sort Keys: ⚡ block_number, validator, delegator | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
cUInt64No
commission_bpsUInt16No
delegatorFixedString(42)Sim
eUInt64No
indexed_atDateTime64(3, 'UTC')No
mUInt64No
recompensaDecimal(38, 8)No
reward_weiUInt64No
snapshot_timeDateTime64(6, 'UTC')No
sourceLowCardinality(String)No
validadorFixedString(42)Sim
validator_total_delegatedUInt64No

hyperliquid_dex_trades

Sort Keys: ⚡ none | Partition: none

ColumnTipoSort Key
block_numberUInt64No
block_timeDateTime64(6, 'UTC')No
buyer_addressFixedString(42)No
buyer_builder_addressNullable(FixedString(42))No
buyer_builder_feeNullable(Decimal(38, 18))No
buyer_closed_pnlDecimal(38, 18)No
buyer_crossedUInt8No
buyer_dirLowCardinality(String)No
buyer_feeDecimal(38, 18)No
buyer_order_idUInt64No
buyer_start_positionDecimal(38, 18)No
buyer_twap_idNullable(UInt64)No
moedaLowCardinality(String)No
fee_tokenLowCardinality(String)No
indexed_atDateTime64(3, 'UTC')No
liquidated_userNullable(FixedString(42))No
liquidation_mark_priceNullable(Decimal(38, 18))No
liquidation_methodNullable(String)No
market_typeStringNo
preçoDecimal(38, 18)No
seller_addressFixedString(42)No
seller_builder_addressNullable(FixedString(42))No
seller_builder_feeNullable(Decimal(38, 18))No
seller_closed_pnlDecimal(38, 18)No
seller_crossedUInt8No
seller_dirLowCardinality(String)No
seller_feeDecimal(38, 18)No
seller_order_idUInt64No
seller_start_positionDecimal(38, 18)No
seller_twap_idNullable(UInt64)No
ladoEnum8('B' = 1, 'A' = 2)No
tamanhoDecimal(38, 18)No
data e horaDateTime64(3, 'UTC')No
total_builder_feeNullable(Decimal(38, 18))No
trade_idUInt64No
transaction_hashFixedString(66)No
unique_idStringNo
usd_amountDecimal(38, 18)No

hyperliquid_display_names

Sort Keys: ⚡ block_number, user | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
display_nameStringNo
indexed_atDateTime64(3, 'UTC')No
snapshot_timeDateTime64(6, 'UTC')No
userFixedString(42)Sim

hyperliquid_fills

Sort Keys: ⚡ block_number, tid, user | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
builderNullable(FixedString(42))No
builder_feeNullable(Decimal(38, 18))No
cloidNullable(String)No
closed_pnlDecimal(38, 18)No
moedaLowCardinality(String)No
crossedUInt8No
deployer_feeNullable(Decimal(38, 18))No
dirLowCardinality(String)No
feeDecimal(38, 18)No
fee_tokenLowCardinality(String)No
hashFixedString(66)No
indexed_atDateTime64(3, 'UTC')No
is_liquidationUInt8No
liquidated_userNullable(FixedString(42))No
liquidation_mark_priceNullable(Decimal(38, 18))No
liquidation_methodNullable(String)No
oidUInt64No
preçoDecimal(38, 18)No
priority_gasNullable(Decimal(38, 18))No
ladoEnum8('B' = 1, 'A' = 2)No
tamanhoDecimal(38, 18)No
start_positionDecimal(38, 18)No
tidUInt64Sim
tempoDateTime64(3, 'UTC')No
twap_idNullable(UInt64)No
userFixedString(42)Sim

hyperliquid_funding

Sort Keys: ⚡ block_number, user, coin, time | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
moedaLowCardinality(String)Sim
funding_amountDecimal(38, 18)No
funding_rateDecimal(38, 18)No
hashFixedString(66)No
indexed_atDateTime64(3, 'UTC')No
sziDecimal(38, 18)No
tempoDateTime64(6, 'UTC')Sim
userFixedString(42)Sim

hyperliquid_funding_summary_hourly

Sort Keys: ⚡ coin, hour | Partition: toYYYYMM(hour)

ColumnTipoSort Key
avg_funding_rateSimpleAggregateFunction(any, Float64)No
moedaLowCardinality(String)Sim
hourDateTime('UTC')Sim
total_fundingSimpleAggregateFunction(sum, Decimal(38, 18))No
unique_usersSimpleAggregateFunction(max, UInt64)No

hyperliquid_ledger_updates

Sort Keys: ⚡ block_number, user, time, hash | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
account_valueNullable(Decimal(38, 18))No
montanteNullable(Decimal(38, 18))No
basisNullable(Decimal(38, 18))No
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
closing_costNullable(Decimal(38, 18))No
commissionNullable(Decimal(38, 18))No
delta_typeLowCardinality(String)No
destinationNullable(FixedString(42))No
destination_dexNullable(String)No
dexNullable(String)No
feeNullable(Decimal(38, 18))No
fee_tokenNullable(String)No
hashFixedString(66)Sim
indexed_atDateTime64(3, 'UTC')No
interest_amountNullable(Decimal(38, 18))No
is_depositNullable(UInt8)No
leverage_typeNullable(String)No
liquidated_ntl_posNullable(Decimal(38, 18))No
liquidated_positionsNullable(String)No
native_token_feeNullable(Decimal(38, 18))No
net_withdrawn_usdNullable(Decimal(38, 18))No
nonceNullable(UInt64)No
operationNullable(String)No
requested_usdNullable(Decimal(38, 18))No
secondary_userNullable(FixedString(42))No
source_dexNullable(String)No
tempoDateTime64(6, 'UTC')Sim
to_perpNullable(UInt8)No
tokenNullable(String)No
usdc_amountNullable(Decimal(38, 18))No
usdc_valueNullable(Decimal(38, 18))No
userFixedString(42)Sim
vaultNullable(FixedString(42))No

hyperliquid_liquidations_hourly

Sort Keys: ⚡ hour, coin | Partition: toYYYYMM(hour)

ColumnTipoSort Key
moedaLowCardinality(String)Sim
hourDateTimeSim
liquidated_volumeSimpleAggregateFunction(sum, Decimal(38, 18))No
liquidation_countSimpleAggregateFunction(sum, UInt64)No
unique_liquidated_usersSimpleAggregateFunction(max, UInt64)No

hyperliquid_market_volume_hourly

Sort Keys: ⚡ coin, hour | Partition: toYYYYMM(hour)

ColumnTipoSort Key
closeSimpleAggregateFunction(anyLast, Decimal(38, 18))No
moedaLowCardinality(String)Sim
highSimpleAggregateFunction(max, Decimal(38, 18))No
hourDateTime('UTC')Sim
lowSimpleAggregateFunction(min, Decimal(38, 18))No
abrirSimpleAggregateFunction(any, Decimal(38, 18))No
trade_countSimpleAggregateFunction(sum, UInt64)No
volumeSimpleAggregateFunction(sum, Decimal(38, 18))No

hyperliquid_metrics_dex_overview

Sort Keys: ⚡ day, coin | Partition: toYYYYMM(day)

ColumnTipoSort Key
moedaLowCardinality(String)Sim
dayDateSim
feesSimpleAggregateFunction(sum, Decimal(38, 18))No
fill_countSimpleAggregateFunction(sum, UInt64)No
high_priceSimpleAggregateFunction(max, Decimal(38, 18))No
liquidationsSimpleAggregateFunction(sum, UInt64)No
low_priceSimpleAggregateFunction(min, Decimal(38, 18))No
unique_tradersSimpleAggregateFunction(max, UInt64)No
volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))No

hyperliquid_metrics_overview

Sort Keys: ⚡ day | Partition: toYYYYMM(day)

ColumnTipoSort Key
active_tradersSimpleAggregateFunction(max, UInt64)No
builder_fill_countSimpleAggregateFunction(sum, UInt64)No
coins_tradedSimpleAggregateFunction(max, UInt64)No
dayDateSim
liquidation_countSimpleAggregateFunction(sum, UInt64)No
liquidation_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))No
total_builder_feesSimpleAggregateFunction(sum, Decimal(38, 18))No
total_feesSimpleAggregateFunction(sum, Decimal(38, 18))No
total_fillsSimpleAggregateFunction(sum, UInt64)No
total_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))No

hyperliquid_oracle_prices

Sort Keys: ⚡ block_number, clearinghouse, asset_idx | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
asset_idxUInt16Sim
block_numberUInt64Sim
clearinghouseUInt8Sim
moedaLowCardinality(String)No
daily_pxStringNo
indexed_atDateTime64(3, 'UTC')No
mark_pxStringNo
snapshot_timeDateTime64(6, 'UTC')No

hyperliquid_order_book_diffs

Sort Keys: ⚡ coin, side, block_number, oid | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
moedaLowCardinality(String)Sim
diff_typeLowCardinality(String)No
indexed_atDateTime64(3, 'UTC')No
new_sizeNullable(Decimal(38, 18))No
oidUInt64Sim
orig_sizeNullable(Decimal(38, 18))No
preçoDecimal(38, 18)No
ladoEnum8('B' = 1, 'A' = 2)Sim
tamanhoNullable(Decimal(38, 18))No
userFixedString(42)No

ordens_hiperlíquidas

Sort Keys: ⚡ block_number, oid, status_time | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
builderNullable(String)No
childrenNullable(String)No
cloidNullable(String)No
moedaLowCardinality(String)No
hashNullable(FixedString(66))No
indexed_atDateTime64(3, 'UTC')No
is_position_tpslUInt8No
is_triggerUInt8No
limit_priceDecimal(38, 18)No
oidUInt64Sim
order_timestampDateTime64(3, 'UTC')No
order_typeLowCardinality(String)No
orig_sizeDecimal(38, 18)No
reduce_onlyUInt8No
ladoEnum8('B' = 1, 'A' = 2)No
tamanhoDecimal(38, 18)No
estadoLowCardinality(String)No
status_timeDateTime64(6, 'UTC')Sim
tifLowCardinality(String)No
trigger_conditionNullable(String)No
trigger_priceNullable(Decimal(38, 18))No
unique_idStringNo
userFixedString(42)No

mercados_de_resultados_hiperlíquidos

Sort Keys: ⚡ none | Partition: none

ColumnTipoSort Key
base_token_idxNullable(UInt64)No
block_numberUInt64No
moedaNullable(String)No
descriçãoStringNo
expiryStringNo
fee_shareFloat64No
first_enabled_as_quoteStringNo
indexed_atDateTime64(3, 'UTC')No
is_liquid_baseUInt8No
is_liquid_quoteUInt8No
lockedUInt8No
nomeLowCardinality(String)No
ndoUInt64No
nouUInt64No
nquUInt64No
outcome_classLowCardinality(String)No
outcome_idUInt64No
pair_nameStringNo
periodLowCardinality(String)No
quote_rawNullable(UInt64)No
quote_token_idxNullable(UInt64)No
quote_token_nameNullable(String)No
quote_token_statusLowCardinality(String)No
quote_token_usdc_pxDecimal(38, 18)No
quote_token_usdc_px_rawUInt64No
raw_side_jsonStringNo
raw_spec_jsonStringNo
side_countUInt16No
side_indexUInt8No
side_nameLowCardinality(String)No
snapshot_timeDateTime64(6, 'UTC')No
spot_deploy_timeStringNo
spot_indexNullable(UInt64)No
spot_resolutionLowCardinality(String)No
target_priceStringNo
token_idxNullable(UInt64)No
token_nameNullable(String)No
underlyingLowCardinality(String)No

hyperliquid_outcome_meta

Sort Keys: ⚡ block_number, outcome_id | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
deploy_gas_auction_jsonStringNo
descriçãoStringNo
expiryStringNo
fee_shareFloat64No
indexed_atDateTime64(3, 'UTC')No
lockedUInt8No
nomeLowCardinality(String)No
ndoUInt64No
nouUInt64No
nquUInt64No
outcome_classLowCardinality(String)No
outcome_idUInt64Sim
periodLowCardinality(String)No
quote_rawNullable(UInt64)No
raw_spec_jsonStringNo
side_countUInt16No
snapshot_timeDateTime64(6, 'UTC')No
target_priceStringNo
underlyingLowCardinality(String)No

hyperliquid_outcome_question_members

Sort Keys: ⚡ block_number, question_id, outcome_id | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
indexed_atDateTime64(3, 'UTC')No
is_fallbackUInt8No
is_settledUInt8No
outcome_idUInt64Sim
question_idUInt64Sim
snapshot_timeDateTime64(6, 'UTC')No
sourceLowCardinality(String)No

hyperliquid_outcome_questions

Sort Keys: ⚡ block_number, question_id | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
descriçãoStringNo
fallback_outcomeNullable(UInt64)No
indexed_atDateTime64(3, 'UTC')No
nomeStringNo
named_outcomes_jsonStringNo
question_idUInt64Sim
raw_question_jsonStringNo
settled_named_outcomes_jsonStringNo
snapshot_timeDateTime64(6, 'UTC')No

hyperliquid_outcome_sides

Sort Keys: ⚡ block_number, outcome_id, side_index | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
base_token_idxNullable(UInt64)No
block_numberUInt64Sim
moedaNullable(String)No
indexed_atDateTime64(3, 'UTC')No
outcome_idUInt64Sim
quote_token_idxNullable(UInt64)No
quote_token_nameNullable(String)No
raw_side_jsonStringNo
side_indexUInt8Sim
side_m_rawStringNo
side_m_valueNullable(Int64)No
side_nameLowCardinality(String)No
snapshot_timeDateTime64(6, 'UTC')No
spot_indexNullable(UInt64)No
spot_indices_jsonStringNo
spot_resolutionLowCardinality(String)No
token_idxNullable(UInt64)No
token_nameNullable(String)No

hyperliquid_perpetual_market_contexts

Sort Keys: ⚡ none | Partition: none

ColumnTipoSort Key
moedaLowCardinality(String)No
day_base_vlmDecimal(38, 18)No
day_ntl_vlmDecimal(38, 18)No
fundingDecimal(38, 18)No
impact_askNullable(Decimal(38, 18))No
impact_bidNullable(Decimal(38, 18))No
mark_pxDecimal(38, 18)No
mid_pxDecimal(38, 18)No
open_interestDecimal(38, 18)No
oracle_pxDecimal(38, 18)No
polled_atDateTime64(6, 'UTC')No
premiumDecimal(38, 18)No
prev_day_pxDecimal(38, 18)No

hyperliquid_perpetual_markets

Sort Keys: ⚡ coin | Partition: none

ColumnTipoSort Key
moedaLowCardinality(String)Sim
indexed_atDateTime64(3, 'UTC')No
margin_table_idNullable(UInt16)No
market_indexUInt16No
max_leverageUInt16No
only_isolatedUInt8No
sz_decimalsUInt8No

hyperliquid_perpetual_positions

Sort Keys: ⚡ block_number, clearinghouse, user, asset_idx | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
asset_idxUInt16Sim
block_numberUInt64Sim
clearinghouseUInt8Sim
moedaStringNo
entry_notionalUInt64No
funding_alltimeInt64No
funding_since_changeInt64No
funding_since_openInt64No
indexed_atDateTime64(3, 'UTC')No
marginUInt64No
tamanhoInt64No
snapshot_timeDateTime64(6, 'UTC')No
usdc_balanceInt64No
userStringSim

hyperliquid_quote_token_meta

Sort Keys: ⚡ block_number, token_idx | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
aligned_quote_info_jsonStringNo
block_numberUInt64Sim
first_enabled_as_quoteStringNo
indexed_atDateTime64(3, 'UTC')No
is_liquid_baseUInt8No
is_liquid_quoteUInt8No
snapshot_timeDateTime64(6, 'UTC')No
estadoLowCardinality(String)No
token_idxUInt64Sim
token_nameLowCardinality(String)No

hyperliquid_register_referral

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTipoSort Key
block_timeDateTime64(6, 'UTC')No
erroNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
referral_codeStringSim
redondoUInt64No
tx_hashStringNo
userStringSim

hyperliquid_set_referrer

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTipoSort Key
block_timeDateTime64(6, 'UTC')No
erroNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
referral_codeStringSim
redondoUInt64No
tx_hashStringNo
userStringSim

hyperliquid_spot_balances

Sort Keys: ⚡ block_number, user, token_idx | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
escrowedInt64No
indexed_atDateTime64(3, 'UTC')No
snapshot_timeDateTime64(6, 'UTC')No
tokenStringNo
token_idxUInt16Sim
totalInt64No
userStringSim

hyperliquid_spot_clearinghouse_states

Sort Keys: ⚡ block_number, user, token_idx | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
escrowedInt64No
indexed_atDateTime64(3, 'UTC')No
snapshot_timeDateTime64(6, 'UTC')No
tokenLowCardinality(String)No
token_idxUInt16Sim
totalInt64No
userFixedString(42)Sim

hyperliquid_spot_markets

Sort Keys: ⚡ token_index | Partition: none

ColumnTipoSort Key
deployer_trading_fee_shareNullable(String)No
evm_contractNullable(String)No
nome_completoNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_canonicalUInt8No
pair_indexNullable(UInt16)No
pair_nameNullable(String)No
sz_decimalsUInt8No
tokenLowCardinality(String)No
token_idStringNo
token_indexUInt16Sim
wei_decimalsUInt8No

hyperliquid_spot_pairs

Sort Keys: ⚡ block_number, spot_index | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
base_token_idxUInt64No
base_token_nameLowCardinality(String)No
block_numberUInt64Sim
deploy_timeStringNo
indexed_atDateTime64(3, 'UTC')No
pair_nameStringNo
quote_token_idxUInt64No
quote_token_nameLowCardinality(String)No
raw_spot_info_jsonStringNo
snapshot_timeDateTime64(6, 'UTC')No
spot_indexUInt64Sim

hyperliquid_staking_events

Sort Keys: ⚡ block_number, hash | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
montanteDecimal(38, 18)No
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
event_typeEnum8('CDeposit' = 1, 'CWithdrawal' = 2, 'Delegation' = 3)No
hashFixedString(66)Sim
indexed_atDateTime64(3, 'UTC')No
is_finalizedNullable(UInt8)No
is_undelegateNullable(UInt8)No
tempoDateTime64(6, 'UTC')No
userFixedString(42)No
validadorNullable(FixedString(42))No

hyperliquid_sub_accounts

Sort Keys: ⚡ block_number, sub_account | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
indexed_atDateTime64(3, 'UTC')No
master_accountFixedString(42)No
nomeNullable(String)No
snapshot_timeDateTime64(6, 'UTC')No
sub_accountFixedString(42)Sim

hyperliquid_summaries

Sort Keys: ⚡ user, polled_at | Partition: toYYYYMM(polled_at)

ColumnTipoSort Key
cross_maintenance_margin_usedDecimal(38, 18)No
cross_margin_account_valueDecimal(38, 18)No
cross_margin_total_margin_usedDecimal(38, 18)No
cross_margin_total_natl_posDecimal(38, 18)No
cross_margin_total_raw_usdDecimal(38, 18)No
indexed_atDateTime64(3, 'UTC')No
margin_account_valueDecimal(38, 18)No
margin_total_margin_usedDecimal(38, 18)No
margin_total_natl_posDecimal(38, 18)No
margin_total_raw_usdDecimal(38, 18)No
polled_atDateTime64(3, 'UTC')Sim
userStringSim
withdrawableDecimal(38, 18)No

hyperliquid_system_actions

Sort Keys: ⚡ block_number, evm_tx_hash, nonce | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
açãoStringNo
action_typeLowCardinality(String)No
agent_addressNullable(FixedString(42))No
agent_nameNullable(String)No
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
destinationNullable(FixedString(42))No
destination_dex_or_spotNullable(UInt8)No
evm_tx_hashFixedString(66)Sim
from_sub_accountNullable(UInt8)No
hyperliquid_chainNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_mintNullable(UInt8)No
is_undelegateNullable(UInt8)No
nonceUInt64Sim
ntlNullable(Decimal(38, 18))No
order_groupingNullable(String)No
signature_chain_idNullable(String)No
source_dex_or_spotNullable(UInt8)No
to_perpNullable(UInt8)No
tokenNullable(UInt16)No
userFixedString(42)No
validadorNullable(FixedString(42))No
weiNullable(UInt256)No

hyperliquid_token_usdc_prices

Sort Keys: ⚡ block_number, token_idx | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
approx_usdc_pxDecimal(38, 18)No
approx_usdc_px_float_1e6Float64No
approx_usdc_px_rawUInt64No
block_numberUInt64Sim
indexed_atDateTime64(3, 'UTC')No
raw_pair_jsonStringNo
snapshot_timeDateTime64(6, 'UTC')No
token_idxUInt64Sim
token_nameLowCardinality(String)No

operações_hiperlíquidas

Sort Keys: ⚡ block_number, trade_id | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
buyer_addressFixedString(42)No
buyer_builder_addressNullable(FixedString(42))No
buyer_builder_feeNullable(Decimal(38, 18))No
buyer_closed_pnlDecimal(38, 18)No
buyer_crossedUInt8No
buyer_deployer_feeNullable(Decimal(38, 18))No
buyer_dirLowCardinality(String)No
buyer_feeDecimal(38, 18)No
buyer_order_idUInt64No
buyer_priority_gasNullable(Decimal(38, 18))No
buyer_start_positionDecimal(38, 18)No
buyer_twap_idNullable(UInt64)No
moedaLowCardinality(String)No
fee_tokenLowCardinality(String)No
indexed_atDateTime64(3, 'UTC')No
liquidated_userNullable(FixedString(42))No
liquidation_mark_priceNullable(Decimal(38, 18))No
liquidation_methodNullable(String)No
preçoDecimal(38, 18)No
seller_addressFixedString(42)No
seller_builder_addressNullable(FixedString(42))No
seller_builder_feeNullable(Decimal(38, 18))No
seller_closed_pnlDecimal(38, 18)No
seller_crossedUInt8No
seller_deployer_feeNullable(Decimal(38, 18))No
seller_dirLowCardinality(String)No
seller_feeDecimal(38, 18)No
seller_order_idUInt64No
seller_priority_gasNullable(Decimal(38, 18))No
seller_start_positionDecimal(38, 18)No
seller_twap_idNullable(UInt64)No
ladoEnum8('B' = 1, 'A' = 2)No
tamanhoDecimal(38, 18)No
data e horaDateTime64(3, 'UTC')No
total_builder_feeNullable(Decimal(38, 18))No
trade_idUInt64Sim
transaction_hashFixedString(66)No
unique_idStringNo

hyperliquid_transactions

Sort Keys: ⚡ round, tx_hash, nonce | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
açãoJSONNo
action_typeLowCardinality(String)No
block_timeDateTime64(6, 'UTC')No
erroNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
nonceUInt64Sim
proponenteNullable(String)No
redondoUInt64Sim
tx_hashStringSim
userNullable(String)No
vault_addressNullable(String)No

hyperliquid_twap_statuses

Sort Keys: ⚡ block_number, twap_id, time | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
moedaLowCardinality(String)No
executed_ntlDecimal(38, 18)No
executed_sizeDecimal(38, 18)No
indexed_atDateTime64(3, 'UTC')No
minutesUInt16No
randomizeUInt8No
reduce_onlyUInt8No
ladoEnum8('B' = 1, 'A' = 2)No
tamanhoDecimal(38, 18)No
estadoLowCardinality(String)No
tempoDateTime64(6, 'UTC')Sim
data e horaDateTime64(3, 'UTC')No
twap_idUInt64Sim
userFixedString(42)No

hyperliquid_validator_rewards

Sort Keys: ⚡ block_number, validator, time | Partition: toYYYYMM(block_time)

ColumnTipoSort Key
block_numberUInt64Sim
block_timeDateTime64(6, 'UTC')No
hashFixedString(66)No
indexed_atDateTime64(3, 'UTC')No
recompensaDecimal(38, 18)No
tempoDateTime64(6, 'UTC')Sim
validadorFixedString(42)Sim

hyperliquid_vault_equities

Sort Keys: ⚡ block_number, vault_address, depositor | Partition: toYYYYMM(snapshot_time)

ColumnTipoSort Key
block_numberUInt64Sim
depositorFixedString(42)Sim
indexed_atDateTime64(3, 'UTC')No
leaderFixedString(42)No
leader_commissionFloat64No
net_depositsInt64No
ownership_fractionFloat64No
snapshot_timeDateTime64(6, 'UTC')No
vault_addressFixedString(42)Sim
vault_nameStringNo

All tables are optimized with sort keys (marked ⚡ in the schema browser) and partition monthly by toYYYYMM(block_time) for efficient time-bounded queries. Data ingestion is near real-time with queries scanning across billions of rows in seconds.

Accessing the Schema

The schema can be accessed as static downloadable files or via the API endpoint.

Downloadable Files

These files are updated periodically:


Schema API

Fetch the current schema with real-time row counts and latest table structures. See the REST API Overview for API authentication details.

Request (Hyperliquid):

curl https://api.quicknode.com/sql/rest/v1/schema/hyperliquid-core-mainnet \
-H "x-api-key: YOUR_API_KEY"

Substituir hyperliquid-core-mainnet with the appropriate cluster ID for other supported chains.

Example Response:

[
{
"chain": "Hyperliquid (HyperCore)",
"clusterId": "hyperliquid-core-mainnet",
"tables": [
{
"name": "hyperliquid_agents",
"engine": "SharedReplacingMergeTree",
"totalRows": 55686595,
"sortingKey": ["block_number", "agent"],
"partitionKey": "toYYYYMM(snapshot_time)",
"columns": [
{
"name": "block_number",
"type": "UInt64"
},
{
"name": "snapshot_time",
"type": "DateTime64(6, 'UTC')"
},
{
"name": "agent",
"type": "FixedString(42)"
}
// ... more columns
]
}
// ... more tables
]
}
]

The response includes table names, engines, column names and data types, sort keys for optimization, partition strategies, and current row counts.

For AI Agents & LLMs

This schema is specifically formatted for programmatic consumption.

Quicknode Skill

For AI agents and LLM applications, install the Quicknode Skill to give your agent full knowledge of SQL Explorer and all Quicknode products:

Competências em npx adicionar quiknode-labs/competências-em-blockchain

Using Schema in Your Agent

When building custom AI agents or LLM applications:

  1. Fetch the schema via the API endpoint above or download the plain text schema optimized for LLM context windows
  2. Include it in your prompt context when generating SQL queries
  3. Reference sort keys for optimal query performance
  4. Use partition keys to limit data scans

Example prompts for AI agents:

Example 1: Generate a SQL query to find the top 10 traders by volume in the last 24 hours.
Schema: [include JSON from schema API or plain text schema file]

Example 2: Create a query to analyze funding rate changes for the BTC perpetual market over the past week, grouped by hour.
Schema: [include JSON from schema API or plain text schema file]

Example 3: Write a SQL query to identify liquidation events larger than $100K in the last 30 days, showing the user, asset, and liquidation size.
Schema: [include JSON from schema API or plain text schema file]

Adoramos ❤️ os vossos comentários!

Se tiver algum comentário ou dúvida sobre esta documentação, não hesite em contactar-nos. Adoraríamos saber a sua opinião!

Partilhar este documento