跳转至主要内容

模式参考

更新于
Apr 02, 2026

概述

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)

Column类型Sort Key
agentFixedString(42)
block_numberUInt64
indexed_atDateTime64(3, 'UTC')
名称字符串
snapshot_timeDateTime64(6, 'UTC')
用户FixedString(42)
valid_until字符串

hyperliquid_asset_transfers

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

Column类型Sort Key
金额Nullable(Decimal(38, 18))
block_numberUInt64
block_timeDateTime64(6, 'UTC')
destinationNullable(FixedString(42))
费用Nullable(Decimal(38, 18))
indexed_atDateTime64(3, 'UTC')
非重复值Nullable(UInt64)
时间DateTime64(6, 'UTC')
tokenNullable(String)
transfer_typeLowCardinality(String)
tx_hashFixedString(66)
usdc_amountNullable(Decimal(38, 18))
用户FixedString(42)

hyperliquid_blocks

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
book_diffs_countUInt32
fills_countUInt32
indexed_atDateTime64(3, 'UTC')
misc_events_countUInt32
orders_countUInt32
twap_statuses_countUInt32
writer_actions_countUInt32

hyperliquid_bridge

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

Column类型Sort Key
amount_weiUInt64
block_numberUInt64
bridge_typeLowCardinality(String)
eth_block_numberUInt64
event_time字符串
indexed_atDateTime64(3, 'UTC')
非重复值UInt64
snapshot_timeDateTime64(6, 'UTC')
tx_hash字符串
用户FixedString(42)

hyperliquid_builder_fills

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
builder_addressNullable(FixedString(42))
builder_feeNullable(Decimal(38, 18))
cloidNullable(String)
closed_pnlDecimal(38, 18)
硬币LowCardinality(String)
created_atDateTime64(6, 'UTC')
crossedUInt8
dirLowCardinality(String)
费用Decimal(38, 18)
哈希FixedString(66)
indexed_atDateTime64(3, 'UTC')
is_liquidationUInt8
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
oidUInt64
价格Decimal(38, 18)
侧面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
start_positionDecimal(38, 18)
tidUInt64
时间戳DateTime64(3, 'UTC')
twap_idNullable(UInt64)
updated_atDateTime64(6, 'UTC')
用户FixedString(42)

hyperliquid_builder_transactions

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

Column类型Sort Key
action_typeLowCardinality(String)
block_numberUInt64
block_timeDateTime64(6, 'UTC')
builder字符串
builder_feeNullable(Decimal(38, 18))
硬币Nullable(String)
哈希字符串
indexed_atDateTime64(3, 'UTC')
is_successUInt8
用户字符串

hyperliquid_clearinghouse_states

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

Column类型Sort Key
asset_idxUInt16
block_numberUInt64
clearinghouseUInt8
硬币LowCardinality(String)
entry_notionalUInt64
funding_alltimeInt64
funding_since_changeInt64
funding_since_openInt64
indexed_atDateTime64(3, 'UTC')
marginUInt64
大小Int64
snapshot_timeDateTime64(6, 'UTC')
usdc_balanceInt64
用户FixedString(42)

hyperliquid_delegator_rewards

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

Column类型Sort Key
block_numberUInt64
cUInt64
commission_bpsUInt16
delegatorFixedString(42)
eUInt64
indexed_atDateTime64(3, 'UTC')
mUInt64
奖励Decimal(38, 8)
reward_weiUInt64
snapshot_timeDateTime64(6, 'UTC')
sourceLowCardinality(String)
验证器FixedString(42)
validator_total_delegatedUInt64

hyperliquid_dex_trades

Sort Keys: ⚡ none | Partition: none

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
buyer_addressFixedString(42)
buyer_builder_addressNullable(FixedString(42))
buyer_builder_feeNullable(Decimal(38, 18))
buyer_closed_pnlDecimal(38, 18)
buyer_crossedUInt8
buyer_dirLowCardinality(String)
buyer_feeDecimal(38, 18)
buyer_order_idUInt64
buyer_start_positionDecimal(38, 18)
buyer_twap_idNullable(UInt64)
硬币LowCardinality(String)
fee_tokenLowCardinality(String)
indexed_atDateTime64(3, 'UTC')
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
market_type字符串
价格Decimal(38, 18)
seller_addressFixedString(42)
seller_builder_addressNullable(FixedString(42))
seller_builder_feeNullable(Decimal(38, 18))
seller_closed_pnlDecimal(38, 18)
seller_crossedUInt8
seller_dirLowCardinality(String)
seller_feeDecimal(38, 18)
seller_order_idUInt64
seller_start_positionDecimal(38, 18)
seller_twap_idNullable(UInt64)
侧面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
时间戳DateTime64(3, 'UTC')
total_builder_feeNullable(Decimal(38, 18))
trade_idUInt64
交易哈希FixedString(66)
unique_id字符串
usd_amountDecimal(38, 18)

hyperliquid_display_names

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

Column类型Sort Key
block_numberUInt64
display_name字符串
indexed_atDateTime64(3, 'UTC')
snapshot_timeDateTime64(6, 'UTC')
用户FixedString(42)

hyperliquid_fills

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
builderNullable(FixedString(42))
builder_feeNullable(Decimal(38, 18))
cloidNullable(String)
closed_pnlDecimal(38, 18)
硬币LowCardinality(String)
crossedUInt8
deployer_feeNullable(Decimal(38, 18))
dirLowCardinality(String)
费用Decimal(38, 18)
fee_tokenLowCardinality(String)
哈希FixedString(66)
indexed_atDateTime64(3, 'UTC')
is_liquidationUInt8
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
oidUInt64
价格Decimal(38, 18)
priority_gasNullable(Decimal(38, 18))
侧面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
start_positionDecimal(38, 18)
tidUInt64
时间DateTime64(3, 'UTC')
twap_idNullable(UInt64)
用户FixedString(42)

hyperliquid_funding

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
硬币LowCardinality(String)
funding_amountDecimal(38, 18)
funding_rateDecimal(38, 18)
哈希FixedString(66)
indexed_atDateTime64(3, 'UTC')
sziDecimal(38, 18)
时间DateTime64(6, 'UTC')
用户FixedString(42)

hyperliquid_funding_summary_hourly

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

Column类型Sort Key
avg_funding_rateSimpleAggregateFunction(any, Float64)
硬币LowCardinality(String)
hourDateTime('UTC')
total_fundingSimpleAggregateFunction(sum, Decimal(38, 18))
unique_usersSimpleAggregateFunction(max, UInt64)

hyperliquid_ledger_updates

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

Column类型Sort Key
account_valueNullable(Decimal(38, 18))
金额Nullable(Decimal(38, 18))
basisNullable(Decimal(38, 18))
block_numberUInt64
block_timeDateTime64(6, 'UTC')
closing_costNullable(Decimal(38, 18))
commissionNullable(Decimal(38, 18))
delta_typeLowCardinality(String)
destinationNullable(FixedString(42))
destination_dexNullable(String)
dexNullable(String)
费用Nullable(Decimal(38, 18))
fee_tokenNullable(String)
哈希FixedString(66)
indexed_atDateTime64(3, 'UTC')
interest_amountNullable(Decimal(38, 18))
is_depositNullable(UInt8)
leverage_typeNullable(String)
liquidated_ntl_posNullable(Decimal(38, 18))
liquidated_positionsNullable(String)
native_token_feeNullable(Decimal(38, 18))
net_withdrawn_usdNullable(Decimal(38, 18))
非重复值Nullable(UInt64)
operationNullable(String)
requested_usdNullable(Decimal(38, 18))
secondary_userNullable(FixedString(42))
source_dexNullable(String)
时间DateTime64(6, 'UTC')
to_perpNullable(UInt8)
tokenNullable(String)
usdc_amountNullable(Decimal(38, 18))
usdc_valueNullable(Decimal(38, 18))
用户FixedString(42)
vaultNullable(FixedString(42))

hyperliquid_liquidations_hourly

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

Column类型Sort Key
硬币LowCardinality(String)
hourDateTime
liquidated_volumeSimpleAggregateFunction(sum, Decimal(38, 18))
liquidation_countSimpleAggregateFunction(sum, UInt64)
unique_liquidated_usersSimpleAggregateFunction(max, UInt64)

hyperliquid_market_volume_hourly

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

Column类型Sort Key
closeSimpleAggregateFunction(anyLast, Decimal(38, 18))
硬币LowCardinality(String)
highSimpleAggregateFunction(max, Decimal(38, 18))
hourDateTime('UTC')
lowSimpleAggregateFunction(min, Decimal(38, 18))
openSimpleAggregateFunction(any, Decimal(38, 18))
trade_countSimpleAggregateFunction(sum, UInt64)
volumeSimpleAggregateFunction(sum, Decimal(38, 18))

hyperliquid_metrics_dex_overview

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

Column类型Sort Key
硬币LowCardinality(String)
dayDate
feesSimpleAggregateFunction(sum, Decimal(38, 18))
fill_countSimpleAggregateFunction(sum, UInt64)
high_priceSimpleAggregateFunction(max, Decimal(38, 18))
liquidationsSimpleAggregateFunction(sum, UInt64)
low_priceSimpleAggregateFunction(min, Decimal(38, 18))
unique_tradersSimpleAggregateFunction(max, UInt64)
volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))

hyperliquid_metrics_overview

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

Column类型Sort Key
active_tradersSimpleAggregateFunction(max, UInt64)
builder_fill_countSimpleAggregateFunction(sum, UInt64)
coins_tradedSimpleAggregateFunction(max, UInt64)
dayDate
liquidation_countSimpleAggregateFunction(sum, UInt64)
liquidation_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))
total_builder_feesSimpleAggregateFunction(sum, Decimal(38, 18))
total_feesSimpleAggregateFunction(sum, Decimal(38, 18))
total_fillsSimpleAggregateFunction(sum, UInt64)
total_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))

hyperliquid_oracle_prices

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

Column类型Sort Key
asset_idxUInt16
block_numberUInt64
clearinghouseUInt8
硬币LowCardinality(String)
daily_px字符串
indexed_atDateTime64(3, 'UTC')
mark_px字符串
snapshot_timeDateTime64(6, 'UTC')

hyperliquid_order_book_diffs

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
硬币LowCardinality(String)
diff_typeLowCardinality(String)
indexed_atDateTime64(3, 'UTC')
new_sizeNullable(Decimal(38, 18))
oidUInt64
orig_sizeNullable(Decimal(38, 18))
价格Decimal(38, 18)
侧面Enum8('B' = 1, 'A' = 2)
大小Nullable(Decimal(38, 18))
用户FixedString(42)

超流体_订单

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
builderNullable(String)
childrenNullable(String)
cloidNullable(String)
硬币LowCardinality(String)
哈希Nullable(FixedString(66))
indexed_atDateTime64(3, 'UTC')
is_position_tpslUInt8
is_triggerUInt8
limit_priceDecimal(38, 18)
oidUInt64
order_timestampDateTime64(3, 'UTC')
order_typeLowCardinality(String)
orig_sizeDecimal(38, 18)
reduce_onlyUInt8
侧面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
状态LowCardinality(String)
status_timeDateTime64(6, 'UTC')
tifLowCardinality(String)
trigger_conditionNullable(String)
trigger_priceNullable(Decimal(38, 18))
unique_id字符串
用户FixedString(42)

超流动性_结果_市场

Sort Keys: ⚡ none | Partition: none

Column类型Sort Key
base_token_idxNullable(UInt64)
block_numberUInt64
硬币Nullable(String)
描述字符串
expiry字符串
fee_shareFloat64
first_enabled_as_quote字符串
indexed_atDateTime64(3, 'UTC')
is_liquid_baseUInt8
is_liquid_quoteUInt8
lockedUInt8
名称LowCardinality(String)
ndoUInt64
nouUInt64
nquUInt64
outcome_classLowCardinality(String)
outcome_idUInt64
pair_name字符串
periodLowCardinality(String)
quote_rawNullable(UInt64)
quote_token_idxNullable(UInt64)
quote_token_nameNullable(String)
quote_token_statusLowCardinality(String)
quote_token_usdc_pxDecimal(38, 18)
quote_token_usdc_px_rawUInt64
raw_side_json字符串
raw_spec_json字符串
side_countUInt16
side_indexUInt8
side_nameLowCardinality(String)
snapshot_timeDateTime64(6, 'UTC')
spot_deploy_time字符串
spot_indexNullable(UInt64)
spot_resolutionLowCardinality(String)
target_price字符串
token_idxNullable(UInt64)
token_nameNullable(String)
underlyingLowCardinality(String)

hyperliquid_outcome_meta

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

Column类型Sort Key
block_numberUInt64
deploy_gas_auction_json字符串
描述字符串
expiry字符串
fee_shareFloat64
indexed_atDateTime64(3, 'UTC')
lockedUInt8
名称LowCardinality(String)
ndoUInt64
nouUInt64
nquUInt64
outcome_classLowCardinality(String)
outcome_idUInt64
periodLowCardinality(String)
quote_rawNullable(UInt64)
raw_spec_json字符串
side_countUInt16
snapshot_timeDateTime64(6, 'UTC')
target_price字符串
underlyingLowCardinality(String)

hyperliquid_outcome_question_members

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

Column类型Sort Key
block_numberUInt64
indexed_atDateTime64(3, 'UTC')
is_fallbackUInt8
is_settledUInt8
outcome_idUInt64
question_idUInt64
snapshot_timeDateTime64(6, 'UTC')
sourceLowCardinality(String)

hyperliquid_outcome_questions

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

Column类型Sort Key
block_numberUInt64
描述字符串
fallback_outcomeNullable(UInt64)
indexed_atDateTime64(3, 'UTC')
名称字符串
named_outcomes_json字符串
question_idUInt64
raw_question_json字符串
settled_named_outcomes_json字符串
snapshot_timeDateTime64(6, 'UTC')

hyperliquid_outcome_sides

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

Column类型Sort Key
base_token_idxNullable(UInt64)
block_numberUInt64
硬币Nullable(String)
indexed_atDateTime64(3, 'UTC')
outcome_idUInt64
quote_token_idxNullable(UInt64)
quote_token_nameNullable(String)
raw_side_json字符串
side_indexUInt8
side_m_raw字符串
side_m_valueNullable(Int64)
side_nameLowCardinality(String)
snapshot_timeDateTime64(6, 'UTC')
spot_indexNullable(UInt64)
spot_indices_json字符串
spot_resolutionLowCardinality(String)
token_idxNullable(UInt64)
token_nameNullable(String)

hyperliquid_perpetual_market_contexts

Sort Keys: ⚡ none | Partition: none

Column类型Sort Key
硬币LowCardinality(String)
day_base_vlmDecimal(38, 18)
day_ntl_vlmDecimal(38, 18)
fundingDecimal(38, 18)
impact_askNullable(Decimal(38, 18))
impact_bidNullable(Decimal(38, 18))
mark_pxDecimal(38, 18)
mid_pxDecimal(38, 18)
open_interestDecimal(38, 18)
oracle_pxDecimal(38, 18)
polled_atDateTime64(6, 'UTC')
premiumDecimal(38, 18)
prev_day_pxDecimal(38, 18)

hyperliquid_perpetual_markets

Sort Keys: ⚡ coin | Partition: none

Column类型Sort Key
硬币LowCardinality(String)
indexed_atDateTime64(3, 'UTC')
margin_table_idNullable(UInt16)
market_indexUInt16
max_leverageUInt16
only_isolatedUInt8
sz_decimalsUInt8

hyperliquid_perpetual_positions

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

Column类型Sort Key
asset_idxUInt16
block_numberUInt64
clearinghouseUInt8
硬币字符串
entry_notionalUInt64
funding_alltimeInt64
funding_since_changeInt64
funding_since_openInt64
indexed_atDateTime64(3, 'UTC')
marginUInt64
大小Int64
snapshot_timeDateTime64(6, 'UTC')
usdc_balanceInt64
用户字符串

hyperliquid_quote_token_meta

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

Column类型Sort Key
aligned_quote_info_json字符串
block_numberUInt64
first_enabled_as_quote字符串
indexed_atDateTime64(3, 'UTC')
is_liquid_baseUInt8
is_liquid_quoteUInt8
snapshot_timeDateTime64(6, 'UTC')
状态LowCardinality(String)
token_idxUInt64
token_nameLowCardinality(String)

hyperliquid_register_referral

Sort Keys: ⚡ referral_code, user | Partition: none

Column类型Sort Key
block_timeDateTime64(6, 'UTC')
错误Nullable(String)
indexed_atDateTime64(3, 'UTC')
is_successUInt8
referral_code字符串
UInt64
tx_hash字符串
用户字符串

hyperliquid_set_referrer

Sort Keys: ⚡ referral_code, user | Partition: none

Column类型Sort Key
block_timeDateTime64(6, 'UTC')
错误Nullable(String)
indexed_atDateTime64(3, 'UTC')
is_successUInt8
referral_code字符串
UInt64
tx_hash字符串
用户字符串

hyperliquid_spot_balances

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

Column类型Sort Key
block_numberUInt64
escrowedInt64
indexed_atDateTime64(3, 'UTC')
snapshot_timeDateTime64(6, 'UTC')
token字符串
token_idxUInt16
总计Int64
用户字符串

hyperliquid_spot_clearinghouse_states

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

Column类型Sort Key
block_numberUInt64
escrowedInt64
indexed_atDateTime64(3, 'UTC')
snapshot_timeDateTime64(6, 'UTC')
tokenLowCardinality(String)
token_idxUInt16
总计Int64
用户FixedString(42)

hyperliquid_spot_markets

Sort Keys: ⚡ token_index | Partition: none

Column类型Sort Key
deployer_trading_fee_shareNullable(String)
evm_contractNullable(String)
full_nameNullable(String)
indexed_atDateTime64(3, 'UTC')
is_canonicalUInt8
pair_indexNullable(UInt16)
pair_nameNullable(String)
sz_decimalsUInt8
tokenLowCardinality(String)
token_id字符串
token_indexUInt16
wei_decimalsUInt8

hyperliquid_spot_pairs

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

Column类型Sort Key
base_token_idxUInt64
base_token_nameLowCardinality(String)
block_numberUInt64
deploy_time字符串
indexed_atDateTime64(3, 'UTC')
pair_name字符串
quote_token_idxUInt64
quote_token_nameLowCardinality(String)
raw_spot_info_json字符串
snapshot_timeDateTime64(6, 'UTC')
spot_indexUInt64

hyperliquid_staking_events

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

Column类型Sort Key
金额Decimal(38, 18)
block_numberUInt64
block_timeDateTime64(6, 'UTC')
event_typeEnum8('CDeposit' = 1, 'CWithdrawal' = 2, 'Delegation' = 3)
哈希FixedString(66)
indexed_atDateTime64(3, 'UTC')
is_finalizedNullable(UInt8)
is_undelegateNullable(UInt8)
时间DateTime64(6, 'UTC')
用户FixedString(42)
验证器Nullable(FixedString(42))

hyperliquid_sub_accounts

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

Column类型Sort Key
block_numberUInt64
indexed_atDateTime64(3, 'UTC')
master_accountFixedString(42)
名称Nullable(String)
snapshot_timeDateTime64(6, 'UTC')
sub_accountFixedString(42)

hyperliquid_summaries

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

Column类型Sort Key
cross_maintenance_margin_usedDecimal(38, 18)
cross_margin_account_valueDecimal(38, 18)
cross_margin_total_margin_usedDecimal(38, 18)
cross_margin_total_natl_posDecimal(38, 18)
cross_margin_total_raw_usdDecimal(38, 18)
indexed_atDateTime64(3, 'UTC')
margin_account_valueDecimal(38, 18)
margin_total_margin_usedDecimal(38, 18)
margin_total_natl_posDecimal(38, 18)
margin_total_raw_usdDecimal(38, 18)
polled_atDateTime64(3, 'UTC')
用户字符串
可提取的Decimal(38, 18)

hyperliquid_system_actions

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

Column类型Sort Key
动作字符串
action_typeLowCardinality(String)
agent_addressNullable(FixedString(42))
agent_nameNullable(String)
block_numberUInt64
block_timeDateTime64(6, 'UTC')
destinationNullable(FixedString(42))
destination_dex_or_spotNullable(UInt8)
evm_tx_hashFixedString(66)
from_sub_accountNullable(UInt8)
hyperliquid_chainNullable(String)
indexed_atDateTime64(3, 'UTC')
is_mintNullable(UInt8)
is_undelegateNullable(UInt8)
非重复值UInt64
ntlNullable(Decimal(38, 18))
order_groupingNullable(String)
signature_chain_idNullable(String)
source_dex_or_spotNullable(UInt8)
to_perpNullable(UInt8)
tokenNullable(UInt16)
用户FixedString(42)
验证器Nullable(FixedString(42))
weiNullable(UInt256)

hyperliquid_token_usdc_prices

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

Column类型Sort Key
approx_usdc_pxDecimal(38, 18)
approx_usdc_px_float_1e6Float64
approx_usdc_px_rawUInt64
block_numberUInt64
indexed_atDateTime64(3, 'UTC')
raw_pair_json字符串
snapshot_timeDateTime64(6, 'UTC')
token_idxUInt64
token_nameLowCardinality(String)

hyperliquid_trades

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
buyer_addressFixedString(42)
buyer_builder_addressNullable(FixedString(42))
buyer_builder_feeNullable(Decimal(38, 18))
buyer_closed_pnlDecimal(38, 18)
buyer_crossedUInt8
buyer_deployer_feeNullable(Decimal(38, 18))
buyer_dirLowCardinality(String)
buyer_feeDecimal(38, 18)
buyer_order_idUInt64
buyer_priority_gasNullable(Decimal(38, 18))
buyer_start_positionDecimal(38, 18)
buyer_twap_idNullable(UInt64)
硬币LowCardinality(String)
fee_tokenLowCardinality(String)
indexed_atDateTime64(3, 'UTC')
liquidated_userNullable(FixedString(42))
liquidation_mark_priceNullable(Decimal(38, 18))
liquidation_methodNullable(String)
价格Decimal(38, 18)
seller_addressFixedString(42)
seller_builder_addressNullable(FixedString(42))
seller_builder_feeNullable(Decimal(38, 18))
seller_closed_pnlDecimal(38, 18)
seller_crossedUInt8
seller_deployer_feeNullable(Decimal(38, 18))
seller_dirLowCardinality(String)
seller_feeDecimal(38, 18)
seller_order_idUInt64
seller_priority_gasNullable(Decimal(38, 18))
seller_start_positionDecimal(38, 18)
seller_twap_idNullable(UInt64)
侧面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
时间戳DateTime64(3, 'UTC')
total_builder_feeNullable(Decimal(38, 18))
trade_idUInt64
交易哈希FixedString(66)
unique_id字符串

hyperliquid_transactions

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

Column类型Sort Key
动作JSON
action_typeLowCardinality(String)
block_timeDateTime64(6, 'UTC')
错误Nullable(String)
indexed_atDateTime64(3, 'UTC')
is_successUInt8
非重复值UInt64
提案人Nullable(String)
UInt64
tx_hash字符串
用户Nullable(String)
vault_addressNullable(String)

hyperliquid_twap_statuses

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
硬币LowCardinality(String)
executed_ntlDecimal(38, 18)
executed_sizeDecimal(38, 18)
indexed_atDateTime64(3, 'UTC')
minutesUInt16
randomizeUInt8
reduce_onlyUInt8
侧面Enum8('B' = 1, 'A' = 2)
大小Decimal(38, 18)
状态LowCardinality(String)
时间DateTime64(6, 'UTC')
时间戳DateTime64(3, 'UTC')
twap_idUInt64
用户FixedString(42)

hyperliquid_validator_rewards

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

Column类型Sort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')
哈希FixedString(66)
indexed_atDateTime64(3, 'UTC')
奖励Decimal(38, 18)
时间DateTime64(6, 'UTC')
验证器FixedString(42)

hyperliquid_vault_equities

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

Column类型Sort Key
block_numberUInt64
depositorFixedString(42)
indexed_atDateTime64(3, 'UTC')
leaderFixedString(42)
leader_commissionFloat64
net_depositsInt64
ownership_fractionFloat64
snapshot_timeDateTime64(6, 'UTC')
vault_addressFixedString(42)
vault_name字符串

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: 您的API密钥"

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

示例回复:

[
{
"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:

npx 技能 添加 quiknode-labs/blockchain-skills

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]

我们 ❤️ 您的反馈!

如果您对本文档有任何反馈或疑问,请告诉我们。我们非常期待您的反馈!

分享此文档