L1 data schemas
The node writes data to ~/hl/data. With default settings, the network will generate around 100 GB of logs per day, so it is recommended to archive or delete old files.
The command line flags to generate the auxiliary data below can be found at https://github.com/hyperliquid-dex/node
Transaction blocks
Blocks parsed as transactions are streamed to
~/hl/data/replica_cmds/{start_time}/{date}/{height}State snapshots
State snapshots are saved every 10,000 blocks to
~/hl/data/periodic_abci_states/{date}/{height}.rmpTrades
Trades data is saved to
~/hl/data/node_trades/hourly/{date}/{hour}// Example trade
{
"coin": "COMP",
"side": "B",
"time": "2024-07-26T08:26:25.899",
"px": "51.367",
"sz": "0.31",
"hash": "0xad8e0566e813bdf98176040e6d51bd011100efa789e89430cdf17964235f55d8",
"trade_dir_override":"Na",
// side_info always has length 2
// side_info[0] is the buyer
// side_info[1] is the seller
"side_info": [
{
"user": "0xc64cc00b46101bd40aa1c3121195e85c0b0918d8",
"start_pos": "996.67",
"oid": 12212201265,
"twap_id": null,
"cloid": null
},
{
"user": "0x768484f7e2ebb675c57838366c02ae99ba2a9b08",
"start_pos": "-996.7",
"oid": 12212198275,
"twap_id": null,
"cloid": null
}
]
}Order statuses
Order status data is saved to
Raw book diffs
Raw book diffs data is saved to
Miscellaneous events
Miscellaneous event data is saved to
Miscellaneous events currently include the following
Staking deposits
Staking delegations
Staking withdrawals
Validator rewards
Ledger updates (funding distributions, spot transfers, etc)
L4 snapshots
Given an abci state, the node can compute an L4 book snapshot, which is the entire order book with full information about the orders for each level. This can be used as a checkpoint upon which the order statuses stream may be applied, allowing users to stream an L4 book in realtime.
Orders in the snapshot are sorted in time-order at the same price level. Trigger orders come at the end and be differentiated with isTrigger .
Last updated