Ir al contenido principal

Referencia del esquema

Actualizado el
2 de abril de 2026

Resumen

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)
block_numberUInt64
indexed_atDateTime64(3, 'UTC')No
nombreCadenaNo
snapshot_timeDateTime64(6, 'UTC')No
usuarioFixedString(42)No
valid_untilCadenaNo

hyperliquid_asset_transfers

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

ColumnTipoSort Key
cantidadNullable(Decimal(38, 18))No
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
destinoNullable(FixedString(42))No
cuotaNullable(Decimal(38, 18))No
indexed_atDateTime64(3, 'UTC')No
nonceNullable(UInt64)No
tiempoDateTime64(6, 'UTC')No
fichaNullable(String)No
transfer_typeLowCardinality(String)No
tx_hashFixedString(66)
usdc_amountNullable(Decimal(38, 18))No
usuarioFixedString(42)

hyperliquid_blocks

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

ColumnTipoSort Key
block_numberUInt64
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_numberUInt64
bridge_typeLowCardinality(String)
eth_block_numberUInt64
event_timeCadenaNo
indexed_atDateTime64(3, 'UTC')No
nonceUInt64
snapshot_timeDateTime64(6, 'UTC')No
tx_hashCadena
usuarioFixedString(42)

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))
builder_feeNullable(Decimal(38, 18))No
cloidNullable(String)No
closed_pnlDecimal(38, 18)No
monedaLowCardinality(String)No
fecha_de_creaciónDateTime64(6, 'UTC')No
crossedUInt8No
dirLowCardinality(String)No
cuotaDecimal(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
precioDecimal(38, 18)No
ladoEnum8('B' = 1, 'A' = 2)No
tamañoDecimal(38, 18)No
start_positionDecimal(38, 18)No
tidUInt64
marca de tiempoDateTime64(3, 'UTC')
twap_idNullable(UInt64)No
updated_atDateTime64(6, 'UTC')No
usuarioFixedString(42)No

hyperliquid_builder_transactions

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

ColumnTipoSort Key
action_typeLowCardinality(String)No
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
builderCadenaNo
builder_feeNullable(Decimal(38, 18))No
monedaNullable(String)No
hashCadena
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
usuarioCadena

hyperliquid_clearinghouse_states

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

ColumnTipoSort Key
asset_idxUInt16
block_numberUInt64
clearinghouseUInt8
monedaLowCardinality(String)No
entry_notionalUInt64No
funding_alltimeInt64No
funding_since_changeInt64No
funding_since_openInt64No
indexed_atDateTime64(3, 'UTC')No
marginUInt64No
tamañoInt64No
snapshot_timeDateTime64(6, 'UTC')No
usdc_balanceInt64No
usuarioFixedString(42)

hyperliquid_delegator_rewards

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

ColumnTipoSort Key
block_numberUInt64
cUInt64No
commission_bpsUInt16No
delegatorFixedString(42)
eUInt64No
indexed_atDateTime64(3, 'UTC')No
mUInt64No
rewardDecimal(38, 8)No
reward_weiUInt64No
snapshot_timeDateTime64(6, 'UTC')No
fuenteLowCardinality(String)No
validadorFixedString(42)
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
monedaLowCardinality(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_typeCadenaNo
precioDecimal(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
tamañoDecimal(38, 18)No
marca de tiempoDateTime64(3, 'UTC')No
total_builder_feeNullable(Decimal(38, 18))No
trade_idUInt64No
hash_de_la_transacciónFixedString(66)No
unique_idCadenaNo
usd_amountDecimal(38, 18)No

hyperliquid_display_names

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

ColumnTipoSort Key
block_numberUInt64
display_nameCadenaNo
indexed_atDateTime64(3, 'UTC')No
snapshot_timeDateTime64(6, 'UTC')No
usuarioFixedString(42)

hyperliquid_fills

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

ColumnTipoSort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
builderNullable(FixedString(42))No
builder_feeNullable(Decimal(38, 18))No
cloidNullable(String)No
closed_pnlDecimal(38, 18)No
monedaLowCardinality(String)No
crossedUInt8No
deployer_feeNullable(Decimal(38, 18))No
dirLowCardinality(String)No
cuotaDecimal(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
precioDecimal(38, 18)No
priority_gasNullable(Decimal(38, 18))No
ladoEnum8('B' = 1, 'A' = 2)No
tamañoDecimal(38, 18)No
start_positionDecimal(38, 18)No
tidUInt64
tiempoDateTime64(3, 'UTC')No
twap_idNullable(UInt64)No
usuarioFixedString(42)

hyperliquid_funding

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

ColumnTipoSort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
monedaLowCardinality(String)
funding_amountDecimal(38, 18)No
funding_rateDecimal(38, 18)No
hashFixedString(66)No
indexed_atDateTime64(3, 'UTC')No
sziDecimal(38, 18)No
tiempoDateTime64(6, 'UTC')
usuarioFixedString(42)

hyperliquid_funding_summary_hourly

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

ColumnTipoSort Key
avg_funding_rateSimpleAggregateFunction(any, Float64)No
monedaLowCardinality(String)
hourDateTime('UTC')
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
cantidadNullable(Decimal(38, 18))No
basisNullable(Decimal(38, 18))No
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
closing_costNullable(Decimal(38, 18))No
commissionNullable(Decimal(38, 18))No
delta_typeLowCardinality(String)No
destinoNullable(FixedString(42))No
destination_dexNullable(String)No
dexNullable(String)No
cuotaNullable(Decimal(38, 18))No
fee_tokenNullable(String)No
hashFixedString(66)
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
tiempoDateTime64(6, 'UTC')
to_perpNullable(UInt8)No
fichaNullable(String)No
usdc_amountNullable(Decimal(38, 18))No
usdc_valueNullable(Decimal(38, 18))No
usuarioFixedString(42)
vaultNullable(FixedString(42))No

hyperliquid_liquidations_hourly

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

ColumnTipoSort Key
monedaLowCardinality(String)
hourDateTime
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
monedaLowCardinality(String)
highSimpleAggregateFunction(max, Decimal(38, 18))No
hourDateTime('UTC')
lowSimpleAggregateFunction(min, Decimal(38, 18))No
openSimpleAggregateFunction(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
monedaLowCardinality(String)
dayDate
tasasSimpleAggregateFunction(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
dayDate
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_idxUInt16
block_numberUInt64
clearinghouseUInt8
monedaLowCardinality(String)No
daily_pxCadenaNo
indexed_atDateTime64(3, 'UTC')No
mark_pxCadenaNo
snapshot_timeDateTime64(6, 'UTC')No

hyperliquid_order_book_diffs

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

ColumnTipoSort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
monedaLowCardinality(String)
diff_typeLowCardinality(String)No
indexed_atDateTime64(3, 'UTC')No
new_sizeNullable(Decimal(38, 18))No
oidUInt64
orig_sizeNullable(Decimal(38, 18))No
precioDecimal(38, 18)No
ladoEnum8('B' = 1, 'A' = 2)
tamañoNullable(Decimal(38, 18))No
usuarioFixedString(42)No

órdenes hiperlíquidas

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

ColumnTipoSort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
builderNullable(String)No
childrenNullable(String)No
cloidNullable(String)No
monedaLowCardinality(String)No
hashNullable(FixedString(66))No
indexed_atDateTime64(3, 'UTC')No
is_position_tpslUInt8No
is_triggerUInt8No
limit_priceDecimal(38, 18)No
oidUInt64
order_timestampDateTime64(3, 'UTC')No
order_typeLowCardinality(String)No
orig_sizeDecimal(38, 18)No
reduce_onlyUInt8No
ladoEnum8('B' = 1, 'A' = 2)No
tamañoDecimal(38, 18)No
estadoLowCardinality(String)No
status_timeDateTime64(6, 'UTC')
tifLowCardinality(String)No
trigger_conditionNullable(String)No
trigger_priceNullable(Decimal(38, 18))No
unique_idCadenaNo
usuarioFixedString(42)No

mercados_de_resultados_hiperlíquidos

Sort Keys: ⚡ none | Partition: none

ColumnTipoSort Key
base_token_idxNullable(UInt64)No
block_numberUInt64No
monedaNullable(String)No
descripciónCadenaNo
expiryCadenaNo
fee_shareFloat64No
first_enabled_as_quoteCadenaNo
indexed_atDateTime64(3, 'UTC')No
is_liquid_baseUInt8No
is_liquid_quoteUInt8No
lockedUInt8No
nombreLowCardinality(String)No
ndoUInt64No
nouUInt64No
nquUInt64No
outcome_classLowCardinality(String)No
outcome_idUInt64No
pair_nameCadenaNo
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_jsonCadenaNo
raw_spec_jsonCadenaNo
side_countUInt16No
side_indexUInt8No
side_nameLowCardinality(String)No
snapshot_timeDateTime64(6, 'UTC')No
spot_deploy_timeCadenaNo
spot_indexNullable(UInt64)No
spot_resolutionLowCardinality(String)No
target_priceCadenaNo
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_numberUInt64
deploy_gas_auction_jsonCadenaNo
descripciónCadenaNo
expiryCadenaNo
fee_shareFloat64No
indexed_atDateTime64(3, 'UTC')No
lockedUInt8No
nombreLowCardinality(String)No
ndoUInt64No
nouUInt64No
nquUInt64No
outcome_classLowCardinality(String)No
outcome_idUInt64
periodLowCardinality(String)No
quote_rawNullable(UInt64)No
raw_spec_jsonCadenaNo
side_countUInt16No
snapshot_timeDateTime64(6, 'UTC')No
target_priceCadenaNo
underlyingLowCardinality(String)No

hyperliquid_outcome_question_members

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

ColumnTipoSort Key
block_numberUInt64
indexed_atDateTime64(3, 'UTC')No
is_fallbackUInt8No
is_settledUInt8No
outcome_idUInt64
question_idUInt64
snapshot_timeDateTime64(6, 'UTC')No
fuenteLowCardinality(String)No

hyperliquid_outcome_questions

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

ColumnTipoSort Key
block_numberUInt64
descripciónCadenaNo
fallback_outcomeNullable(UInt64)No
indexed_atDateTime64(3, 'UTC')No
nombreCadenaNo
named_outcomes_jsonCadenaNo
question_idUInt64
raw_question_jsonCadenaNo
settled_named_outcomes_jsonCadenaNo
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_numberUInt64
monedaNullable(String)No
indexed_atDateTime64(3, 'UTC')No
outcome_idUInt64
quote_token_idxNullable(UInt64)No
quote_token_nameNullable(String)No
raw_side_jsonCadenaNo
side_indexUInt8
side_m_rawCadenaNo
side_m_valueNullable(Int64)No
side_nameLowCardinality(String)No
snapshot_timeDateTime64(6, 'UTC')No
spot_indexNullable(UInt64)No
spot_indices_jsonCadenaNo
spot_resolutionLowCardinality(String)No
token_idxNullable(UInt64)No
token_nameNullable(String)No

hyperliquid_perpetual_market_contexts

Sort Keys: ⚡ none | Partition: none

ColumnTipoSort Key
monedaLowCardinality(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
monedaLowCardinality(String)
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_idxUInt16
block_numberUInt64
clearinghouseUInt8
monedaCadenaNo
entry_notionalUInt64No
funding_alltimeInt64No
funding_since_changeInt64No
funding_since_openInt64No
indexed_atDateTime64(3, 'UTC')No
marginUInt64No
tamañoInt64No
snapshot_timeDateTime64(6, 'UTC')No
usdc_balanceInt64No
usuarioCadena

hyperliquid_quote_token_meta

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

ColumnTipoSort Key
aligned_quote_info_jsonCadenaNo
block_numberUInt64
first_enabled_as_quoteCadenaNo
indexed_atDateTime64(3, 'UTC')No
is_liquid_baseUInt8No
is_liquid_quoteUInt8No
snapshot_timeDateTime64(6, 'UTC')No
estadoLowCardinality(String)No
token_idxUInt64
token_nameLowCardinality(String)No

hyperliquid_register_referral

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTipoSort Key
block_timeDateTime64(6, 'UTC')No
errorNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
referral_codeCadena
redondoUInt64No
tx_hashCadenaNo
usuarioCadena

hyperliquid_set_referrer

Sort Keys: ⚡ referral_code, user | Partition: none

ColumnTipoSort Key
block_timeDateTime64(6, 'UTC')No
errorNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
referral_codeCadena
redondoUInt64No
tx_hashCadenaNo
usuarioCadena

hyperliquid_spot_balances

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

ColumnTipoSort Key
block_numberUInt64
escrowedInt64No
indexed_atDateTime64(3, 'UTC')No
snapshot_timeDateTime64(6, 'UTC')No
fichaCadenaNo
token_idxUInt16
totalInt64No
usuarioCadena

hyperliquid_spot_clearinghouse_states

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

ColumnTipoSort Key
block_numberUInt64
escrowedInt64No
indexed_atDateTime64(3, 'UTC')No
snapshot_timeDateTime64(6, 'UTC')No
fichaLowCardinality(String)No
token_idxUInt16
totalInt64No
usuarioFixedString(42)

hyperliquid_spot_markets

Sort Keys: ⚡ token_index | Partition: none

ColumnTipoSort Key
deployer_trading_fee_shareNullable(String)No
evm_contractNullable(String)No
nombre_completoNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_canonicalUInt8No
pair_indexNullable(UInt16)No
pair_nameNullable(String)No
sz_decimalsUInt8No
fichaLowCardinality(String)No
token_idCadenaNo
token_indexUInt16
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_numberUInt64
deploy_timeCadenaNo
indexed_atDateTime64(3, 'UTC')No
pair_nameCadenaNo
quote_token_idxUInt64No
quote_token_nameLowCardinality(String)No
raw_spot_info_jsonCadenaNo
snapshot_timeDateTime64(6, 'UTC')No
spot_indexUInt64

hyperliquid_staking_events

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

ColumnTipoSort Key
cantidadDecimal(38, 18)No
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
event_typeEnum8('CDeposit' = 1, 'CWithdrawal' = 2, 'Delegation' = 3)No
hashFixedString(66)
indexed_atDateTime64(3, 'UTC')No
is_finalizedNullable(UInt8)No
is_undelegateNullable(UInt8)No
tiempoDateTime64(6, 'UTC')No
usuarioFixedString(42)No
validadorNullable(FixedString(42))No

hyperliquid_sub_accounts

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

ColumnTipoSort Key
block_numberUInt64
indexed_atDateTime64(3, 'UTC')No
master_accountFixedString(42)No
nombreNullable(String)No
snapshot_timeDateTime64(6, 'UTC')No
sub_accountFixedString(42)

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')
usuarioCadena
withdrawableDecimal(38, 18)No

hyperliquid_system_actions

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

ColumnTipoSort Key
acciónCadenaNo
action_typeLowCardinality(String)No
agent_addressNullable(FixedString(42))No
agent_nameNullable(String)No
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
destinoNullable(FixedString(42))No
destination_dex_or_spotNullable(UInt8)No
evm_tx_hashFixedString(66)
from_sub_accountNullable(UInt8)No
hyperliquid_chainNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_mintNullable(UInt8)No
is_undelegateNullable(UInt8)No
nonceUInt64
ntlNullable(Decimal(38, 18))No
order_groupingNullable(String)No
signature_chain_idNullable(String)No
source_dex_or_spotNullable(UInt8)No
to_perpNullable(UInt8)No
fichaNullable(UInt16)No
usuarioFixedString(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_numberUInt64
indexed_atDateTime64(3, 'UTC')No
raw_pair_jsonCadenaNo
snapshot_timeDateTime64(6, 'UTC')No
token_idxUInt64
token_nameLowCardinality(String)No

operaciones_hiperlíquidas

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

ColumnTipoSort Key
block_numberUInt64
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
monedaLowCardinality(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
precioDecimal(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
tamañoDecimal(38, 18)No
marca de tiempoDateTime64(3, 'UTC')No
total_builder_feeNullable(Decimal(38, 18))No
trade_idUInt64
hash_de_la_transacciónFixedString(66)No
unique_idCadenaNo

hyperliquid_transactions

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

ColumnTipoSort Key
acciónJSONNo
action_typeLowCardinality(String)No
block_timeDateTime64(6, 'UTC')No
errorNullable(String)No
indexed_atDateTime64(3, 'UTC')No
is_successUInt8No
nonceUInt64
promotorNullable(String)No
redondoUInt64
tx_hashCadena
usuarioNullable(String)No
vault_addressNullable(String)No

hyperliquid_twap_statuses

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

ColumnTipoSort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
monedaLowCardinality(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
tamañoDecimal(38, 18)No
estadoLowCardinality(String)No
tiempoDateTime64(6, 'UTC')
marca de tiempoDateTime64(3, 'UTC')No
twap_idUInt64
usuarioFixedString(42)No

hyperliquid_validator_rewards

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

ColumnTipoSort Key
block_numberUInt64
block_timeDateTime64(6, 'UTC')No
hashFixedString(66)No
indexed_atDateTime64(3, 'UTC')No
rewardDecimal(38, 18)No
tiempoDateTime64(6, 'UTC')
validadorFixedString(42)

hyperliquid_vault_equities

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

ColumnTipoSort Key
block_numberUInt64
depositorFixedString(42)
indexed_atDateTime64(3, 'UTC')No
leaderFixedString(42)No
leader_commissionFloat64No
net_depositsInt64No
ownership_fractionFloat64No
snapshot_timeDateTime64(6, 'UTC')No
vault_addressFixedString(42)
vault_nameCadenaNo

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"

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

Ejemplo de respuesta:

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

Habilidades de npx añadir 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]

¡Nos encanta recibir comentarios!

Si tienes algún comentario o pregunta sobre esta documentación, háznoslo saber. ¡Nos encantaría saber tu opinión!

Comparte este documento