Skip to main content
Returns code at a given address. This method will use 40 Compute Units.
Over HTTPS, Hyperliquid Mainnet returns the latest state for this method whatever block parameter you pass; a request for a past block does not fail, it answers with current data. Over WebSocket the request is served by nanoreth and a past block returns historical state.

Reference: Here

Parameters

  1. DATA, 20 Bytes - address.
  2. QUANTITY|TAG - integer block number, or the string "latest", "earliest" or "pending", see the default block parameter

Returns

DATA - the code from the given address.