eth_call

Executes a call or a transaction on the Ethereum network.

Example

import { getRpcClient, eth_call } from "thirdweb/rpc";
const rpcRequest = getRpcClient({ client, chain });
const result = await eth_call(rpcRequest, {
to: "0x...",
...
});

Parameters

Returns

A promise that resolves to the result of the call or transaction.