Skip to main content
Executes a message call immediately without broadcasting a transaction to the network. No gas is consumed on-chain. Used to read contract state or simulate calls.
Since Denim, Base produces a canonical block every 200ms and Flashblocks are retired. The "pending" tag is still accepted, but it no longer returns Flashblocks preconfirmation state. Use "latest" for the newest canonical state. See Migrate From Flashblocks.

Parameters

object
required
The transaction call object.
string
required
Block number in hex, or "latest", "pending", "safe", "finalized", "earliest".

Returns

string
The return value of the call as a hex-encoded byte array.

Error Codes

Example