Ga naar de hoofdinhoud

Schema Reference

Bijgewerkt op
2 april 2026

Overzicht

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)

ColumnTypeSort Key
agentFixedString(42)Ja
block_numberUInt64Ja
indexed_atDateTime64(3, 'UTC')Nee
naamStringNee
snapshot_timeDateTime64(6, 'UTC')Nee
userFixedString(42)Nee
valid_untilStringNee

hyperliquid_asset_transfers

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

ColumnTypeSort Key
amountNullable(Decimal(38, 18))Nee
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
destinationNullable(FixedString(42))Nee
feeNullable(Decimal(38, 18))Nee
indexed_atDateTime64(3, 'UTC')Nee
nonceNullable(UInt64)Nee
tijdDateTime64(6, 'UTC')Nee
tokenNullable(String)Nee
transfer_typeLowCardinality(String)Nee
tx_hashFixedString(66)Ja
usdc_amountNullable(Decimal(38, 18))Nee
userFixedString(42)Ja

hyperliquid_blocks

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
book_diffs_countUInt32Nee
fills_countUInt32Nee
indexed_atDateTime64(3, 'UTC')Nee
misc_events_countUInt32Nee
orders_countUInt32Nee
twap_statuses_countUInt32Nee
writer_actions_countUInt32Nee

hyperliquid_bridge

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

ColumnTypeSort Key
amount_weiUInt64Nee
block_numberUInt64Ja
bridge_typeLowCardinality(String)Ja
eth_block_numberUInt64Ja
event_timeStringNee
indexed_atDateTime64(3, 'UTC')Nee
nonceUInt64Ja
snapshot_timeDateTime64(6, 'UTC')Nee
tx_hashStringJa
userFixedString(42)Ja

hyperliquid_builder_fills

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

ColumnTypeSort Key
block_numberUInt64Nee
block_timeDateTime64(6, 'UTC')Nee
builder_addressNullable(FixedString(42))Ja
builder_feeNullable(Decimal(38, 18))Nee
cloidNullable(String)Nee
closed_pnlDecimal(38, 18)Nee
muntLowCardinality(String)Nee
created_atDateTime64(6, 'UTC')Nee
crossedUInt8Nee
dirLowCardinality(String)Nee
feeDecimal(38, 18)Nee
hashFixedString(66)Nee
indexed_atDateTime64(3, 'UTC')Nee
is_liquidationUInt8Nee
liquidated_userNullable(FixedString(42))Nee
liquidation_mark_priceNullable(Decimal(38, 18))Nee
liquidation_methodNullable(String)Nee
oidUInt64Nee
prijsDecimal(38, 18)Nee
zijdeEnum8('B' = 1, 'A' = 2)Nee
grootteDecimal(38, 18)Nee
start_positionDecimal(38, 18)Nee
tidUInt64Ja
tijdstempelDateTime64(3, 'UTC')Ja
twap_idNullable(UInt64)Nee
updated_atDateTime64(6, 'UTC')Nee
userFixedString(42)Nee

hyperliquid_builder_transactions

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

ColumnTypeSort Key
action_typeLowCardinality(String)Nee
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
builderStringNee
builder_feeNullable(Decimal(38, 18))Nee
muntNullable(String)Nee
hashStringJa
indexed_atDateTime64(3, 'UTC')Nee
is_successUInt8Nee
userStringJa

hyperliquid_clearinghouse_states

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

ColumnTypeSort Key
asset_idxUInt16Ja
block_numberUInt64Ja
clearinghouseUInt8Ja
muntLowCardinality(String)Nee
entry_notionalUInt64Nee
funding_alltimeInt64Nee
funding_since_changeInt64Nee
funding_since_openInt64Nee
indexed_atDateTime64(3, 'UTC')Nee
marginUInt64Nee
grootteInt64Nee
snapshot_timeDateTime64(6, 'UTC')Nee
usdc_balanceInt64Nee
userFixedString(42)Ja

hyperliquid_delegator_rewards

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

ColumnTypeSort Key
block_numberUInt64Ja
cUInt64Nee
commission_bpsUInt16Nee
delegatorFixedString(42)Ja
eUInt64Nee
indexed_atDateTime64(3, 'UTC')Nee
mUInt64Nee
beloningDecimal(38, 8)Nee
reward_weiUInt64Nee
snapshot_timeDateTime64(6, 'UTC')Nee
sourceLowCardinality(String)Nee
validatorFixedString(42)Ja
validator_total_delegatedUInt64Nee

hyperliquid_dex_trades

Sort Keys: ⚡ none | Partition: none

ColumnTypeSort Key
block_numberUInt64Nee
block_timeDateTime64(6, 'UTC')Nee
buyer_addressFixedString(42)Nee
buyer_builder_addressNullable(FixedString(42))Nee
buyer_builder_feeNullable(Decimal(38, 18))Nee
buyer_closed_pnlDecimal(38, 18)Nee
buyer_crossedUInt8Nee
buyer_dirLowCardinality(String)Nee
buyer_feeDecimal(38, 18)Nee
buyer_order_idUInt64Nee
buyer_start_positionDecimal(38, 18)Nee
buyer_twap_idNullable(UInt64)Nee
muntLowCardinality(String)Nee
fee_tokenLowCardinality(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
liquidated_userNullable(FixedString(42))Nee
liquidation_mark_priceNullable(Decimal(38, 18))Nee
liquidation_methodNullable(String)Nee
market_typeStringNee
prijsDecimal(38, 18)Nee
seller_addressFixedString(42)Nee
seller_builder_addressNullable(FixedString(42))Nee
seller_builder_feeNullable(Decimal(38, 18))Nee
seller_closed_pnlDecimal(38, 18)Nee
seller_crossedUInt8Nee
seller_dirLowCardinality(String)Nee
seller_feeDecimal(38, 18)Nee
seller_order_idUInt64Nee
seller_start_positionDecimal(38, 18)Nee
seller_twap_idNullable(UInt64)Nee
zijdeEnum8('B' = 1, 'A' = 2)Nee
grootteDecimal(38, 18)Nee
tijdstempelDateTime64(3, 'UTC')Nee
total_builder_feeNullable(Decimal(38, 18))Nee
trade_idUInt64Nee
transaction_hashFixedString(66)Nee
unique_idStringNee
usd_amountDecimal(38, 18)Nee

hyperliquid_display_names

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

ColumnTypeSort Key
block_numberUInt64Ja
display_nameStringNee
indexed_atDateTime64(3, 'UTC')Nee
snapshot_timeDateTime64(6, 'UTC')Nee
userFixedString(42)Ja

hyperliquid_fills

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
builderNullable(FixedString(42))Nee
builder_feeNullable(Decimal(38, 18))Nee
cloidNullable(String)Nee
closed_pnlDecimal(38, 18)Nee
muntLowCardinality(String)Nee
crossedUInt8Nee
deployer_feeNullable(Decimal(38, 18))Nee
dirLowCardinality(String)Nee
feeDecimal(38, 18)Nee
fee_tokenLowCardinality(String)Nee
hashFixedString(66)Nee
indexed_atDateTime64(3, 'UTC')Nee
is_liquidationUInt8Nee
liquidated_userNullable(FixedString(42))Nee
liquidation_mark_priceNullable(Decimal(38, 18))Nee
liquidation_methodNullable(String)Nee
oidUInt64Nee
prijsDecimal(38, 18)Nee
priority_gasNullable(Decimal(38, 18))Nee
zijdeEnum8('B' = 1, 'A' = 2)Nee
grootteDecimal(38, 18)Nee
start_positionDecimal(38, 18)Nee
tidUInt64Ja
tijdDateTime64(3, 'UTC')Nee
twap_idNullable(UInt64)Nee
userFixedString(42)Ja

hyperliquid_funding

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
muntLowCardinality(String)Ja
funding_amountDecimal(38, 18)Nee
funding_rateDecimal(38, 18)Nee
hashFixedString(66)Nee
indexed_atDateTime64(3, 'UTC')Nee
sziDecimal(38, 18)Nee
tijdDateTime64(6, 'UTC')Ja
userFixedString(42)Ja

hyperliquid_funding_summary_hourly

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

ColumnTypeSort Key
avg_funding_rateSimpleAggregateFunction(any, Float64)Nee
muntLowCardinality(String)Ja
hourDateTime('UTC')Ja
total_fundingSimpleAggregateFunction(sum, Decimal(38, 18))Nee
unique_usersSimpleAggregateFunction(max, UInt64)Nee

hyperliquid_ledger_updates

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

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

hyperliquid_liquidations_hourly

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

ColumnTypeSort Key
muntLowCardinality(String)Ja
hourDateTimeJa
liquidated_volumeSimpleAggregateFunction(sum, Decimal(38, 18))Nee
liquidation_countSimpleAggregateFunction(sum, UInt64)Nee
unique_liquidated_usersSimpleAggregateFunction(max, UInt64)Nee

hyperliquid_market_volume_hourly

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

ColumnTypeSort Key
closeSimpleAggregateFunction(anyLast, Decimal(38, 18))Nee
muntLowCardinality(String)Ja
highSimpleAggregateFunction(max, Decimal(38, 18))Nee
hourDateTime('UTC')Ja
lowSimpleAggregateFunction(min, Decimal(38, 18))Nee
openSimpleAggregateFunction(any, Decimal(38, 18))Nee
trade_countSimpleAggregateFunction(sum, UInt64)Nee
volumeSimpleAggregateFunction(sum, Decimal(38, 18))Nee

hyperliquid_metrics_dex_overview

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

ColumnTypeSort Key
muntLowCardinality(String)Ja
dayDateJa
feesSimpleAggregateFunction(sum, Decimal(38, 18))Nee
fill_countSimpleAggregateFunction(sum, UInt64)Nee
high_priceSimpleAggregateFunction(max, Decimal(38, 18))Nee
liquidationsSimpleAggregateFunction(sum, UInt64)Nee
low_priceSimpleAggregateFunction(min, Decimal(38, 18))Nee
unique_tradersSimpleAggregateFunction(max, UInt64)Nee
volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))Nee

hyperliquid_metrics_overview

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

ColumnTypeSort Key
active_tradersSimpleAggregateFunction(max, UInt64)Nee
builder_fill_countSimpleAggregateFunction(sum, UInt64)Nee
coins_tradedSimpleAggregateFunction(max, UInt64)Nee
dayDateJa
liquidation_countSimpleAggregateFunction(sum, UInt64)Nee
liquidation_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))Nee
total_builder_feesSimpleAggregateFunction(sum, Decimal(38, 18))Nee
total_feesSimpleAggregateFunction(sum, Decimal(38, 18))Nee
total_fillsSimpleAggregateFunction(sum, UInt64)Nee
total_volume_usdSimpleAggregateFunction(sum, Decimal(38, 18))Nee

hyperliquid_oracle_prices

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

ColumnTypeSort Key
asset_idxUInt16Ja
block_numberUInt64Ja
clearinghouseUInt8Ja
muntLowCardinality(String)Nee
daily_pxStringNee
indexed_atDateTime64(3, 'UTC')Nee
mark_pxStringNee
snapshot_timeDateTime64(6, 'UTC')Nee

hyperliquid_order_book_diffs

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
muntLowCardinality(String)Ja
diff_typeLowCardinality(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
new_sizeNullable(Decimal(38, 18))Nee
oidUInt64Ja
orig_sizeNullable(Decimal(38, 18))Nee
prijsDecimal(38, 18)Nee
zijdeEnum8('B' = 1, 'A' = 2)Ja
grootteNullable(Decimal(38, 18))Nee
userFixedString(42)Nee

hyperliquid_orders

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
builderNullable(String)Nee
childrenNullable(String)Nee
cloidNullable(String)Nee
muntLowCardinality(String)Nee
hashNullable(FixedString(66))Nee
indexed_atDateTime64(3, 'UTC')Nee
is_position_tpslUInt8Nee
is_triggerUInt8Nee
limit_priceDecimal(38, 18)Nee
oidUInt64Ja
order_timestampDateTime64(3, 'UTC')Nee
order_typeLowCardinality(String)Nee
orig_sizeDecimal(38, 18)Nee
reduce_onlyUInt8Nee
zijdeEnum8('B' = 1, 'A' = 2)Nee
grootteDecimal(38, 18)Nee
statusLowCardinality(String)Nee
status_timeDateTime64(6, 'UTC')Ja
tifLowCardinality(String)Nee
trigger_conditionNullable(String)Nee
trigger_priceNullable(Decimal(38, 18))Nee
unique_idStringNee
userFixedString(42)Nee

hyperliquid_outcome_markets

Sort Keys: ⚡ none | Partition: none

ColumnTypeSort Key
base_token_idxNullable(UInt64)Nee
block_numberUInt64Nee
muntNullable(String)Nee
descriptionStringNee
expiryStringNee
fee_shareFloat64Nee
first_enabled_as_quoteStringNee
indexed_atDateTime64(3, 'UTC')Nee
is_liquid_baseUInt8Nee
is_liquid_quoteUInt8Nee
lockedUInt8Nee
naamLowCardinality(String)Nee
ndoUInt64Nee
nouUInt64Nee
nquUInt64Nee
outcome_classLowCardinality(String)Nee
outcome_idUInt64Nee
pair_nameStringNee
periodLowCardinality(String)Nee
quote_rawNullable(UInt64)Nee
quote_token_idxNullable(UInt64)Nee
quote_token_nameNullable(String)Nee
quote_token_statusLowCardinality(String)Nee
quote_token_usdc_pxDecimal(38, 18)Nee
quote_token_usdc_px_rawUInt64Nee
raw_side_jsonStringNee
raw_spec_jsonStringNee
side_countUInt16Nee
side_indexUInt8Nee
side_nameLowCardinality(String)Nee
snapshot_timeDateTime64(6, 'UTC')Nee
spot_deploy_timeStringNee
spot_indexNullable(UInt64)Nee
spot_resolutionLowCardinality(String)Nee
target_priceStringNee
token_idxNullable(UInt64)Nee
token_nameNullable(String)Nee
underlyingLowCardinality(String)Nee

hyperliquid_outcome_meta

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

ColumnTypeSort Key
block_numberUInt64Ja
deploy_gas_auction_jsonStringNee
descriptionStringNee
expiryStringNee
fee_shareFloat64Nee
indexed_atDateTime64(3, 'UTC')Nee
lockedUInt8Nee
naamLowCardinality(String)Nee
ndoUInt64Nee
nouUInt64Nee
nquUInt64Nee
outcome_classLowCardinality(String)Nee
outcome_idUInt64Ja
periodLowCardinality(String)Nee
quote_rawNullable(UInt64)Nee
raw_spec_jsonStringNee
side_countUInt16Nee
snapshot_timeDateTime64(6, 'UTC')Nee
target_priceStringNee
underlyingLowCardinality(String)Nee

hyperliquid_outcome_question_members

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

ColumnTypeSort Key
block_numberUInt64Ja
indexed_atDateTime64(3, 'UTC')Nee
is_fallbackUInt8Nee
is_settledUInt8Nee
outcome_idUInt64Ja
question_idUInt64Ja
snapshot_timeDateTime64(6, 'UTC')Nee
sourceLowCardinality(String)Nee

hyperliquid_outcome_questions

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

ColumnTypeSort Key
block_numberUInt64Ja
descriptionStringNee
fallback_outcomeNullable(UInt64)Nee
indexed_atDateTime64(3, 'UTC')Nee
naamStringNee
named_outcomes_jsonStringNee
question_idUInt64Ja
raw_question_jsonStringNee
settled_named_outcomes_jsonStringNee
snapshot_timeDateTime64(6, 'UTC')Nee

hyperliquid_outcome_sides

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

ColumnTypeSort Key
base_token_idxNullable(UInt64)Nee
block_numberUInt64Ja
muntNullable(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
outcome_idUInt64Ja
quote_token_idxNullable(UInt64)Nee
quote_token_nameNullable(String)Nee
raw_side_jsonStringNee
side_indexUInt8Ja
side_m_rawStringNee
side_m_valueNullable(Int64)Nee
side_nameLowCardinality(String)Nee
snapshot_timeDateTime64(6, 'UTC')Nee
spot_indexNullable(UInt64)Nee
spot_indices_jsonStringNee
spot_resolutionLowCardinality(String)Nee
token_idxNullable(UInt64)Nee
token_nameNullable(String)Nee

hyperliquid_perpetual_market_contexts

Sort Keys: ⚡ none | Partition: none

ColumnTypeSort Key
muntLowCardinality(String)Nee
day_base_vlmDecimal(38, 18)Nee
day_ntl_vlmDecimal(38, 18)Nee
fundingDecimal(38, 18)Nee
impact_askNullable(Decimal(38, 18))Nee
impact_bidNullable(Decimal(38, 18))Nee
mark_pxDecimal(38, 18)Nee
mid_pxDecimal(38, 18)Nee
open_interestDecimal(38, 18)Nee
oracle_pxDecimal(38, 18)Nee
polled_atDateTime64(6, 'UTC')Nee
premiumDecimal(38, 18)Nee
prev_day_pxDecimal(38, 18)Nee

hyperliquid_perpetual_markets

Sort Keys: ⚡ coin | Partition: none

ColumnTypeSort Key
muntLowCardinality(String)Ja
indexed_atDateTime64(3, 'UTC')Nee
margin_table_idNullable(UInt16)Nee
market_indexUInt16Nee
max_leverageUInt16Nee
only_isolatedUInt8Nee
sz_decimalsUInt8Nee

hyperliquid_perpetual_positions

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

ColumnTypeSort Key
asset_idxUInt16Ja
block_numberUInt64Ja
clearinghouseUInt8Ja
muntStringNee
entry_notionalUInt64Nee
funding_alltimeInt64Nee
funding_since_changeInt64Nee
funding_since_openInt64Nee
indexed_atDateTime64(3, 'UTC')Nee
marginUInt64Nee
grootteInt64Nee
snapshot_timeDateTime64(6, 'UTC')Nee
usdc_balanceInt64Nee
userStringJa

hyperliquid_quote_token_meta

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

ColumnTypeSort Key
aligned_quote_info_jsonStringNee
block_numberUInt64Ja
first_enabled_as_quoteStringNee
indexed_atDateTime64(3, 'UTC')Nee
is_liquid_baseUInt8Nee
is_liquid_quoteUInt8Nee
snapshot_timeDateTime64(6, 'UTC')Nee
statusLowCardinality(String)Nee
token_idxUInt64Ja
token_nameLowCardinality(String)Nee

hyperliquid_register_referral

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTypeSort Key
block_timeDateTime64(6, 'UTC')Nee
foutNullable(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
is_successUInt8Nee
referral_codeStringJa
roundUInt64Nee
tx_hashStringNee
userStringJa

hyperliquid_set_referrer

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTypeSort Key
block_timeDateTime64(6, 'UTC')Nee
foutNullable(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
is_successUInt8Nee
referral_codeStringJa
roundUInt64Nee
tx_hashStringNee
userStringJa

hyperliquid_spot_balances

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

ColumnTypeSort Key
block_numberUInt64Ja
escrowedInt64Nee
indexed_atDateTime64(3, 'UTC')Nee
snapshot_timeDateTime64(6, 'UTC')Nee
tokenStringNee
token_idxUInt16Ja
totaalInt64Nee
userStringJa

hyperliquid_spot_clearinghouse_states

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

ColumnTypeSort Key
block_numberUInt64Ja
escrowedInt64Nee
indexed_atDateTime64(3, 'UTC')Nee
snapshot_timeDateTime64(6, 'UTC')Nee
tokenLowCardinality(String)Nee
token_idxUInt16Ja
totaalInt64Nee
userFixedString(42)Ja

hyperliquid_spot_markets

Sort Keys: ⚡ token_index | Partition: none

ColumnTypeSort Key
deployer_trading_fee_shareNullable(String)Nee
evm_contractNullable(String)Nee
volledige_naamNullable(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
is_canonicalUInt8Nee
pair_indexNullable(UInt16)Nee
pair_nameNullable(String)Nee
sz_decimalsUInt8Nee
tokenLowCardinality(String)Nee
token_idStringNee
token_indexUInt16Ja
wei_decimalsUInt8Nee

hyperliquid_spot_pairs

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

ColumnTypeSort Key
base_token_idxUInt64Nee
base_token_nameLowCardinality(String)Nee
block_numberUInt64Ja
deploy_timeStringNee
indexed_atDateTime64(3, 'UTC')Nee
pair_nameStringNee
quote_token_idxUInt64Nee
quote_token_nameLowCardinality(String)Nee
raw_spot_info_jsonStringNee
snapshot_timeDateTime64(6, 'UTC')Nee
spot_indexUInt64Ja

hyperliquid_staking_events

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

ColumnTypeSort Key
amountDecimal(38, 18)Nee
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
event_typeEnum8('CDeposit' = 1, 'CWithdrawal' = 2, 'Delegation' = 3)Nee
hashFixedString(66)Ja
indexed_atDateTime64(3, 'UTC')Nee
is_finalizedNullable(UInt8)Nee
is_undelegateNullable(UInt8)Nee
tijdDateTime64(6, 'UTC')Nee
userFixedString(42)Nee
validatorNullable(FixedString(42))Nee

hyperliquid_sub_accounts

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

ColumnTypeSort Key
block_numberUInt64Ja
indexed_atDateTime64(3, 'UTC')Nee
master_accountFixedString(42)Nee
naamNullable(String)Nee
snapshot_timeDateTime64(6, 'UTC')Nee
sub_accountFixedString(42)Ja

hyperliquid_summaries

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

ColumnTypeSort Key
cross_maintenance_margin_usedDecimal(38, 18)Nee
cross_margin_account_valueDecimal(38, 18)Nee
cross_margin_total_margin_usedDecimal(38, 18)Nee
cross_margin_total_natl_posDecimal(38, 18)Nee
cross_margin_total_raw_usdDecimal(38, 18)Nee
indexed_atDateTime64(3, 'UTC')Nee
margin_account_valueDecimal(38, 18)Nee
margin_total_margin_usedDecimal(38, 18)Nee
margin_total_natl_posDecimal(38, 18)Nee
margin_total_raw_usdDecimal(38, 18)Nee
polled_atDateTime64(3, 'UTC')Ja
userStringJa
withdrawableDecimal(38, 18)Nee

hyperliquid_system_actions

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

ColumnTypeSort Key
actieStringNee
action_typeLowCardinality(String)Nee
agent_addressNullable(FixedString(42))Nee
agent_nameNullable(String)Nee
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
destinationNullable(FixedString(42))Nee
destination_dex_or_spotNullable(UInt8)Nee
evm_tx_hashFixedString(66)Ja
from_sub_accountNullable(UInt8)Nee
hyperliquid_chainNullable(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
is_mintNullable(UInt8)Nee
is_undelegateNullable(UInt8)Nee
nonceUInt64Ja
ntlNullable(Decimal(38, 18))Nee
order_groupingNullable(String)Nee
signature_chain_idNullable(String)Nee
source_dex_or_spotNullable(UInt8)Nee
to_perpNullable(UInt8)Nee
tokenNullable(UInt16)Nee
userFixedString(42)Nee
validatorNullable(FixedString(42))Nee
weiNullable(UInt256)Nee

hyperliquid_token_usdc_prices

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

ColumnTypeSort Key
approx_usdc_pxDecimal(38, 18)Nee
approx_usdc_px_float_1e6Float64Nee
approx_usdc_px_rawUInt64Nee
block_numberUInt64Ja
indexed_atDateTime64(3, 'UTC')Nee
raw_pair_jsonStringNee
snapshot_timeDateTime64(6, 'UTC')Nee
token_idxUInt64Ja
token_nameLowCardinality(String)Nee

hyperliquid_trades

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
buyer_addressFixedString(42)Nee
buyer_builder_addressNullable(FixedString(42))Nee
buyer_builder_feeNullable(Decimal(38, 18))Nee
buyer_closed_pnlDecimal(38, 18)Nee
buyer_crossedUInt8Nee
buyer_deployer_feeNullable(Decimal(38, 18))Nee
buyer_dirLowCardinality(String)Nee
buyer_feeDecimal(38, 18)Nee
buyer_order_idUInt64Nee
buyer_priority_gasNullable(Decimal(38, 18))Nee
buyer_start_positionDecimal(38, 18)Nee
buyer_twap_idNullable(UInt64)Nee
muntLowCardinality(String)Nee
fee_tokenLowCardinality(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
liquidated_userNullable(FixedString(42))Nee
liquidation_mark_priceNullable(Decimal(38, 18))Nee
liquidation_methodNullable(String)Nee
prijsDecimal(38, 18)Nee
seller_addressFixedString(42)Nee
seller_builder_addressNullable(FixedString(42))Nee
seller_builder_feeNullable(Decimal(38, 18))Nee
seller_closed_pnlDecimal(38, 18)Nee
seller_crossedUInt8Nee
seller_deployer_feeNullable(Decimal(38, 18))Nee
seller_dirLowCardinality(String)Nee
seller_feeDecimal(38, 18)Nee
seller_order_idUInt64Nee
seller_priority_gasNullable(Decimal(38, 18))Nee
seller_start_positionDecimal(38, 18)Nee
seller_twap_idNullable(UInt64)Nee
zijdeEnum8('B' = 1, 'A' = 2)Nee
grootteDecimal(38, 18)Nee
tijdstempelDateTime64(3, 'UTC')Nee
total_builder_feeNullable(Decimal(38, 18))Nee
trade_idUInt64Ja
transaction_hashFixedString(66)Nee
unique_idStringNee

hyperliquid_transactions

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

ColumnTypeSort Key
actieJSONNee
action_typeLowCardinality(String)Nee
block_timeDateTime64(6, 'UTC')Nee
foutNullable(String)Nee
indexed_atDateTime64(3, 'UTC')Nee
is_successUInt8Nee
nonceUInt64Ja
proposerNullable(String)Nee
roundUInt64Ja
tx_hashStringJa
userNullable(String)Nee
vault_addressNullable(String)Nee

hyperliquid_twap_statuses

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
muntLowCardinality(String)Nee
executed_ntlDecimal(38, 18)Nee
executed_sizeDecimal(38, 18)Nee
indexed_atDateTime64(3, 'UTC')Nee
minutesUInt16Nee
randomizeUInt8Nee
reduce_onlyUInt8Nee
zijdeEnum8('B' = 1, 'A' = 2)Nee
grootteDecimal(38, 18)Nee
statusLowCardinality(String)Nee
tijdDateTime64(6, 'UTC')Ja
tijdstempelDateTime64(3, 'UTC')Nee
twap_idUInt64Ja
userFixedString(42)Nee

hyperliquid_validator_rewards

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

ColumnTypeSort Key
block_numberUInt64Ja
block_timeDateTime64(6, 'UTC')Nee
hashFixedString(66)Nee
indexed_atDateTime64(3, 'UTC')Nee
beloningDecimal(38, 18)Nee
tijdDateTime64(6, 'UTC')Ja
validatorFixedString(42)Ja

hyperliquid_vault_equities

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

ColumnTypeSort Key
block_numberUInt64Ja
depositorFixedString(42)Ja
indexed_atDateTime64(3, 'UTC')Nee
leaderFixedString(42)Nee
leader_commissionFloat64Nee
net_depositsInt64Nee
ownership_fractionFloat64Nee
snapshot_timeDateTime64(6, 'UTC')Nee
vault_addressFixedString(42)Ja
vault_nameStringNee

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"

Vervangen 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:

npx-vaardigheden toevoegen 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]

We ❤️ feedback!

Mocht je opmerkingen of vragen hebben over deze documentatie, laat het ons dan weten. We horen graag van je!

Deel dit document