Skip to main content

HyperCore Precompiles

Melt contracts interact with HyperCore through precompile addresses — native system contracts on HyperEVM.

Precompile Addresses

AddressInterfacePurpose
0x...0801ISpotBalanceQuery spot balances
0x...0810ICoreUserExistsCheck if user exists on HyperCore
0x3333...3333ICoreWriterSend raw actions (spot transfers)

Asset Bridge

Each HIP-1 token has a dedicated asset bridge address computed from its core index:
function getAssetBridge(uint64 coreIndexId) internal pure returns (address) {
    return address(uint160(ASSET_BRIDGE_PREFIX) + coreIndexId);
}
The asset bridge is the gateway between HyperEVM and HyperCore spot balances.

Spot Transfer

To send tokens from HyperEVM to a user’s HyperCore spot balance:
HyperCoreLib.sendSpotTransfer(recipient, coreIndexId, amount);
This encodes a SPOT_SEND action and calls the ICoreWriter precompile.

HyperLiquid Info API

The web app uses the HyperLiquid Info API for real-time market data:
  • Market tickers — price, volume, 24h change
  • Order book — real-time bid/ask depth
  • Candle data — OHLCV for charting
  • Recent trades — latest executed trades
  • User state — positions, open orders, balances

WebSocket Integration

Real-time data streams via WebSocket for:
  • Order book updates
  • Trade execution notifications
  • Balance changes