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.

HyperEVMReadInputOutput
0x0800position
Size, entry notional, isolated margin and leverage of one user's perp position.
(address user, uint16 perp)Position
0x0801spotBalance
Total, held and entry notional of a spot token for one user.
(address user, uint64 token)SpotBalance
0x0802userVaultEquity
A depositor's equity in a HyperCore vault and its lock time.
(address user, address vault)UserVaultEquity
0x0803withdrawable
USDC a user can withdraw from the perp account.
(address user)Withdrawable
6 decimals (USDC)
0x0804delegations
Every HYPE delegation of a user, by validator.
(address user)Delegation[]
0x0805delegatorSummary
Delegated, undelegated and pending withdrawal totals of a staker.
(address user)DelegatorSummary
0x0806markPx
Mark price of a perp market.
(uint32 index)uint64
6 minus szDecimals
0x0807oraclePx
Oracle price of a perp market, the one funding uses.
(uint32 index)uint64
6 minus szDecimals
0x0808spotPx
Price of a spot pair.
(uint32 index)uint64
8 minus base szDecimals
0x0809l1BlockNumber
The HyperCore block number the read was taken at.
()uint64
0x080aperpAssetInfo
Coin name, size decimals and max leverage of a perp market.
(uint32 perp)PerpAssetInfo
0x080bspotInfo
Name and base/quote token indexes of a spot pair.
(uint32 spot)SpotInfo
0x080ctokenInfo
Name, pairs, decimals and linked EVM contract of a HyperCore token.
(uint32 token)TokenInfo
0x080dtokenSupply
Max, total and circulating supply of a HyperCore token.
(uint32 token)TokenSupply
0x080ebbo
Top of book bid and ask of a market.
(uint32 asset)Bbo
6 minus szDecimals
0x080faccountMarginSummary
Account value, margin used and notional of a user on a perp dex.
(uint32 perpDexIndex, address user)AccountMarginSummary
0x0810coreUserExists
Whether an address has a HyperCore account.
(address user)CoreUserExists
0x0811borrowLendUserState
Borrowed and supplied basis and value of a user for one token.
(address user, uint64 token)BorrowLendUserTokenState
0x0812borrowLendReserveState
Rates, utilization, LTV and totals of a lending reserve.
(uint64 token)BorrowLendReserveState
0x0813position2
Same 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

ReadHyperEVMElysium soft precompile
position0x00000000000000000000000000000000000008000x70810bE0894c1D63C94DefB4DA023847E6000800
spotBalance0x00000000000000000000000000000000000008010xc29f70c5d768cA1Bf4c622D460bba77f30000801
userVaultEquity0x00000000000000000000000000000000000008020xa9f54d1aDD6406150e1c323D36DE6283Aa000802
withdrawable0x00000000000000000000000000000000000008030x8Ce27817a090Aa52455fD1A305C22957E9000803
delegations0x00000000000000000000000000000000000008040xB38E1F1869529C22e426e017F122beBA50000804
delegatorSummary0x00000000000000000000000000000000000008050x25e9112754d9380350AA1F1bc8e86335aD000805
markPx0x00000000000000000000000000000000000008060xE68C9fBC3D2df1D172e3F9FfBCC667E986000806
oraclePx0x00000000000000000000000000000000000008070x76eF0814190aE2fbF5AE4af980Ef3B6491000807
spotPx0x00000000000000000000000000000000000008080xDc2C2fCc1477D3a0bd04d6833F47a35ADA000808
l1BlockNumber0x00000000000000000000000000000000000008090x98D4F2ae8186c8E9a1dfCDCa0326F0fAb7000809
perpAssetInfo0x000000000000000000000000000000000000080a0x2699b1Faf8C2B4422e3c963e26AfeE278300080A
spotInfo0x000000000000000000000000000000000000080b0x6F56b41F3F9f4dD0453Cc7756245849BB600080b
tokenInfo0x000000000000000000000000000000000000080c0x94Ac941CecAA494AbdE4da237334aF938B00080C
tokenSupply0x000000000000000000000000000000000000080d0xa263BE59BD699DCe747180190ABCea4cEF00080D
bbo0x000000000000000000000000000000000000080e0xE57448d9397aE2AeEb9634Ba126Dc8c7a500080e
accountMarginSummary0x000000000000000000000000000000000000080f0x33A73Ed773972FEf36ec3C4f006cE0C69C00080F
coreUserExists0x00000000000000000000000000000000000008100x45fFA5e41845B9D4377CDf17e121b9bd0D000810
borrowLendUserState0x00000000000000000000000000000000000008110x64feB3D7E9A7674e13b9DF4a091773b40e000811
borrowLendReserveState0x00000000000000000000000000000000000008120x51001f40aCd94446d3e2FFdBec1504d6E7000812
position20x00000000000000000000000000000000000008130x4DbbEf1F4B1eb7302fbD608B73Da6Bbf4B000813