Interface reference
Each read takes abi.encode(arguments) as raw calldata, with no function selector, and returns abi.encode(result). Call it with staticcall. The soft precompile on Elysium answers the same bytes. These signatures were checked against HyperEVM mainnet with eth_call on 2026-12-01 UTC.
| HyperEVM | Read | Input | Output |
|---|---|---|---|
0x0800 | positionSize, entry notional, isolated margin and leverage of one user's perp position. | (address user, uint16 perp) | Position |
0x0801 | spotBalanceTotal, held and entry notional of a spot token for one user. | (address user, uint64 token) | SpotBalance |
0x0802 | userVaultEquityA depositor's equity in a HyperCore vault and its lock time. | (address user, address vault) | UserVaultEquity |
0x0803 | withdrawableUSDC a user can withdraw from the perp account. | (address user) | Withdrawable6 decimals (USDC) |
0x0804 | delegationsEvery HYPE delegation of a user, by validator. | (address user) | Delegation[] |
0x0805 | delegatorSummaryDelegated, undelegated and pending withdrawal totals of a staker. | (address user) | DelegatorSummary |
0x0806 | markPxMark price of a perp market. | (uint32 index) | uint646 minus szDecimals |
0x0807 | oraclePxOracle price of a perp market, the one funding uses. | (uint32 index) | uint646 minus szDecimals |
0x0808 | spotPxPrice of a spot pair. | (uint32 index) | uint648 minus base szDecimals |
0x0809 | l1BlockNumberThe HyperCore block number the read was taken at. | () | uint64 |
0x080a | perpAssetInfoCoin name, size decimals and max leverage of a perp market. | (uint32 perp) | PerpAssetInfo |
0x080b | spotInfoName and base/quote token indexes of a spot pair. | (uint32 spot) | SpotInfo |
0x080c | tokenInfoName, pairs, decimals and linked EVM contract of a HyperCore token. | (uint32 token) | TokenInfo |
0x080d | tokenSupplyMax, total and circulating supply of a HyperCore token. | (uint32 token) | TokenSupply |
0x080e | bboTop of book bid and ask of a market. | (uint32 asset) | Bbo6 minus szDecimals |
0x080f | accountMarginSummaryAccount value, margin used and notional of a user on a perp dex. | (uint32 perpDexIndex, address user) | AccountMarginSummary |
0x0810 | coreUserExistsWhether an address has a HyperCore account. | (address user) | CoreUserExists |
0x0811 | borrowLendUserStateBorrowed and supplied basis and value of a user for one token. | (address user, uint64 token) | BorrowLendUserTokenState |
0x0812 | borrowLendReserveStateRates, utilization, LTV and totals of a lending reserve. | (uint64 token) | BorrowLendReserveState |
0x0813 | position2Same as position, with a uint32 asset id that covers builder-deployed dexes. | (address user, uint32 perp) | Position |
Structs
struct Position { int64 szi; uint64 entryNtl; int64 isolatedRawUsd; uint32 leverage; bool isIsolated; }
struct SpotBalance { uint64 total; uint64 hold; uint64 entryNtl; }
struct UserVaultEquity { uint64 equity; uint64 lockedUntilTimestamp; }
struct Withdrawable { uint64 withdrawable; }
struct Delegation { address validator; uint64 amount; uint64 lockedUntilTimestamp; }
struct DelegatorSummary { uint64 delegated; uint64 undelegated; uint64 totalPendingWithdrawal; uint64 nPendingWithdrawals; }
struct PerpAssetInfo { string coin; uint32 marginTableId; uint8 szDecimals; uint8 maxLeverage; bool onlyIsolated; }
struct SpotInfo { string name; uint64[2] tokens; }
struct TokenInfo { string name; uint64[] spots; uint64 deployerTradingFeeShare; address deployer; address evmContract; uint8 szDecimals; uint8 weiDecimals; int8 evmExtraWeiDecimals; }
struct UserBalance { address user; uint64 balance; }
struct TokenSupply { uint64 maxSupply; uint64 totalSupply; uint64 circulatingSupply; uint64 futureEmissions; UserBalance[] nonCirculatingUserBalances; }
struct Bbo { uint64 bid; uint64 ask; }
struct AccountMarginSummary { int64 accountValue; uint64 marginUsed; uint64 ntlPos; int64 rawUsd; }
struct CoreUserExists { bool exists; }
struct BasisAndValue { uint64 basis; uint64 value; }
struct BorrowLendUserTokenState { BasisAndValue borrow; BasisAndValue supply; }
struct BorrowLendReserveState { uint64 borrowYearlyRateBps; uint64 supplyYearlyRateBps; uint64 balance; uint64 utilizationBps; uint64 oraclePx; uint64 ltvBps; uint64 totalSupplied; uint64 totalBorrowed; }Decoding prices
Perp prices from markPx, oraclePx and bbo have 6 - szDecimals decimals, where szDecimals comes from perpAssetInfo. Spot prices from spotPx have 8 - szDecimals of the base token. Example: BTC has szDecimals 5, so an oraclePx of 589769 is 58,976.9.
Errors
HyperEVM answers an error for inputs HyperCore does not know, such as an unknown asset or an account without a lending position, and consumes the gas passed to the call. A soft precompile reverts with NoValue(key) when it holds no value for that input yet; request one with request(id, input).
Addresses
| Read | HyperEVM | Elysium soft precompile |
|---|---|---|
position | 0x0000000000000000000000000000000000000800 | 0x70810bE0894c1D63C94DefB4DA023847E6000800 |
spotBalance | 0x0000000000000000000000000000000000000801 | 0xc29f70c5d768cA1Bf4c622D460bba77f30000801 |
userVaultEquity | 0x0000000000000000000000000000000000000802 | 0xa9f54d1aDD6406150e1c323D36DE6283Aa000802 |
withdrawable | 0x0000000000000000000000000000000000000803 | 0x8Ce27817a090Aa52455fD1A305C22957E9000803 |
delegations | 0x0000000000000000000000000000000000000804 | 0xB38E1F1869529C22e426e017F122beBA50000804 |
delegatorSummary | 0x0000000000000000000000000000000000000805 | 0x25e9112754d9380350AA1F1bc8e86335aD000805 |
markPx | 0x0000000000000000000000000000000000000806 | 0xE68C9fBC3D2df1D172e3F9FfBCC667E986000806 |
oraclePx | 0x0000000000000000000000000000000000000807 | 0x76eF0814190aE2fbF5AE4af980Ef3B6491000807 |
spotPx | 0x0000000000000000000000000000000000000808 | 0xDc2C2fCc1477D3a0bd04d6833F47a35ADA000808 |
l1BlockNumber | 0x0000000000000000000000000000000000000809 | 0x98D4F2ae8186c8E9a1dfCDCa0326F0fAb7000809 |
perpAssetInfo | 0x000000000000000000000000000000000000080a | 0x2699b1Faf8C2B4422e3c963e26AfeE278300080A |
spotInfo | 0x000000000000000000000000000000000000080b | 0x6F56b41F3F9f4dD0453Cc7756245849BB600080b |
tokenInfo | 0x000000000000000000000000000000000000080c | 0x94Ac941CecAA494AbdE4da237334aF938B00080C |
tokenSupply | 0x000000000000000000000000000000000000080d | 0xa263BE59BD699DCe747180190ABCea4cEF00080D |
bbo | 0x000000000000000000000000000000000000080e | 0xE57448d9397aE2AeEb9634Ba126Dc8c7a500080e |
accountMarginSummary | 0x000000000000000000000000000000000000080f | 0x33A73Ed773972FEf36ec3C4f006cE0C69C00080F |
coreUserExists | 0x0000000000000000000000000000000000000810 | 0x45fFA5e41845B9D4377CDf17e121b9bd0D000810 |
borrowLendUserState | 0x0000000000000000000000000000000000000811 | 0x64feB3D7E9A7674e13b9DF4a091773b40e000811 |
borrowLendReserveState | 0x0000000000000000000000000000000000000812 | 0x51001f40aCd94446d3e2FFdBec1504d6E7000812 |
position2 | 0x0000000000000000000000000000000000000813 | 0x4DbbEf1F4B1eb7302fbD608B73Da6Bbf4B000813 |