Core Reads live
Request any HyperCore read precompile, or any HyperEVM contract view, from an Elysium contract. The answer arrives by callback with the HyperCore block it was read at.
Make a request
struct Read { address target; bytes data; uint32 gas; }
function requestRead(Read[] calldata reads, uint32 callbackGas)
external payable returns (uint256 id);reads: 1 to 16 staticcalls.targetis a HyperCore read precompile (0x…0800to0x…0810, encoded as in Hyperliquid'sL1Read.sol) or any HyperEVM contract.gasis capped at 500,000 per read.callbackGas: the gas youronCoreReadreceives, at most 3,000,000. Zero means no callback.msg.value: the escrow. It must be above zero.
Common reads: oraclePx is 0x…0807 with abi.encode(uint32 perpIndex) (159 is HYPE), markPx is 0x…0806, spotPx is 0x…0808 with a spot index (107 is HYPE, 334 is KNTQ), and l1BlockNumber is 0x…0809 with empty data.
How it crosses
Anyone can carry a request. The carrier calls CoreProbe.probe(id, reads, ticket) on HyperEVM with the reads the request named and pays the retryable ticket from msg.value; unused ticket value is refunded to the carrier on Elysium. CoreProbe runs every read by staticcall, so the carrier chooses only when the read happens, never what it returns.
CoreWire checks three things on delivery: the sender is CoreProbe's aliased address (CoreProbe + 0x1111…1111), the request is open, and keccak256(abi.encode(reads)) matches the request. A delivery with other reads emits Mismatch and pays nothing; the request stays open.
The callback
interface ICoreReader {
function onCoreRead(uint256 id, bool[] calldata ok,
bytes[] calldata results, Stamp calldata stamp) external;
}
struct Stamp { uint64 hcBlock; uint64 evmBlock; uint64 evmTime; }Check msg.sender == CoreWire in your callback. ok[i] is false when read i reverted. If the ticket arrives with less gas than callbackGas needs, deliver reverts and the ticket can be redeemed again with more gas. If your callback reverts, the delivery still completes, the carrier is paid and ReadDelivered records callbackOk = false. Every delivered result also refreshes Core Mirror.
Latency
A read takes one HyperEVM block plus the retryable's landing on Elysium. A ticket sent in HyperEVM block 52,402,734 landed in Elysium block 11,709,838 eight seconds later. The Canary contract 0x87f036149c46041aD614FCEB0b5017Bb176A9586 requests HyperCore's HYPE oracle price on a schedule and records each answer's latency on chain in Answered events; the home page draws that distribution live. Its first answer took 13 seconds from request to callback, including the relayer noticing the request.
Cancel and refund
If nobody delivers, the requester calls cancel(id) five minutes after the request and gets the full escrow back. No Corewire service is involved. A delivery that arrives after a cancel emits Late and pays nothing.
Escrow and fees
On delivery the escrow splits in two. The protocol keeps escrow × marginBps / (10,000 + marginBps); the carrier receives the rest as a credit it withdraws with claim(). marginBps is 2,000 today, so the protocol keeps one sixth of the escrow, which is 20% on top of the carrier's share. The owner can change it up to 5,000. The protocol share goes to FeeSplitter through flush(), which anyone can call.
The house relayer carries a request when its escrow covers the HyperEVM gas, the ticket and the callback gas. For one read with a 100,000-gas callback that is about 0.0002 HYPE; the Console asks 0.0003 HYPE.