Protos / Precompiles
Docs
Product

Precompiles

HyperEVMElysium soft precompileReadInputsLast valueAge
0x08000x70810bE0…000800position
Perp position
(address, uint16)on request
0x08010xc29f70c5…000801spotBalance
Spot balance
(address, uint64)on request
0x08020xa9f54d1a…000802userVaultEquity
Vault equity
(address, address)on request
0x08030x8Ce27817…000803withdrawable
Withdrawable
(address)on request
0x08040xB38E1F18…000804delegations
Delegations
(address)on request
0x08050x25e91127…000805delegatorSummary
Delegator summary
(address)on request
0x08060xE68C9fBC…000806markPx
Mark price
(uint32)on request
0x08070x76eF0814…000807oraclePx
Oracle price
(uint32)on request
0x08080xDc2C2fCc…000808spotPx
Spot price
(uint32)on request
0x08090x98D4F2ae…000809l1BlockNumber
HyperCore block
()on request
0x080a0x2699b1Fa…00080AperpAssetInfo
Perp asset info
(uint32)on request
0x080b0x6F56b41F…00080bspotInfo
Spot pair info
(uint32)on request
0x080c0x94Ac941C…00080CtokenInfo
Token info
(uint32)on request
0x080d0xa263BE59…00080DtokenSupply
Token supply
(uint32)on request
0x080e0xE57448d9…00080ebbo
Best bid and offer
(uint32)on request
0x080f0x33A73Ed7…00080FaccountMarginSummary
Account margin
(uint32, address)on request
0x08100x45fFA5e4…000810coreUserExists
Core user exists
(address)on request
0x08110x64feB3D7…000811borrowLendUserState
Lending position
(address, uint64)on request
0x08120x51001f40…000812borrowLendReserveState
Lending reserve
(uint64)on request
0x08130x4DbbEf1F…000813position2
Perp position (any dex)
(address, uint32)on request
Request an update
One canonical update reads up to sixteen precompiles on HyperEVM and writes them on Elysium in a single retryable ticket.
quoting…
From Elysium, in HYPE or USDC
Contracts and wallets on Elysium call request(id, input) on the hub. The keeper picks the request up and runs the canonical update; the fee goes to the fee vault.
Fee …, paid on Elysium to the hub. The next keeper round pushes it through the canonical path.
hub.request{value: fee}(0x0807, abi.encode(uint32(0))); // or in USDC, after approve(hub, fee) hub.requestUsdc(0x0807, abi.encode(uint32(0))); // read it back with its blocks (uint64 hyperBlock, uint64 hyperTs, uint64 coreBlock, uint64 at) = ISoftPrecompile(ORACLE_PX).meta(abi.encode(uint32(0)));
ConnectingHyperEVM #…HyperCore #…Elysium #…HyperEVM gas Elysium gas