Skip to main content
Returns the value from a storage position at a given address. This method will use 40 Compute Units.
Mantle Mainnet keeps historical state for the last 128 blocks, about 4 minutes at Mantle’s 2-second block time. Requests for an older block return JSON-RPC error -32000 with a message that contains historical state <root> is not available.

Reference: Here

Parameters

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

Returns

String - Hex value representing data at this storage position.