Skip to main content
Returns code at a given address. This method will use 40 Compute Units.
Cronos Mainnet keeps state for the last 362,880 blocks, about 42 hours at Cronos’s block time of under half a second. Requests for an older block return JSON-RPC error -32000 with a message that contains failed to load state at height.

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.