Alchemy Logo

eth_call

POST
/{apiKey}

Executes a new message call immediately without creating a transaction on the blockchain.

Path Parameters

apiKeystringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

Transactionobjectrequired

The transaction call object containing the details of the message call.

Blockstring or enumoptional

The block number, tag, or hash at which to execute the call. Defaults to 'latest' if not provided.

Identifies a block by explicit number, a predefined tag (e.g., latest/safe/finalized), or a 32-byte block hash.

Responses

200

The return value of the executed contract function, encoded as a hexadecimal string.

Was this page helpful?