Skip to content

Transaction call object ​

A transaction that the node runs without a signature and without a change to the chain.

eth_call, eth_estimateGas, eth_createAccessList, eth_callMany, eth_simulateV1, debug_traceCall and trace_call take this object. All fields are optional.

Fields ​

FieldTypeMeaning
fromaddressThe sender. Default: the zero address.
toaddressThe contract or account to call. Leave it out to deploy the code in input.
gashex numberThe gas limit. Default: the gas cap of the node (--rpc-gascap, 50 000 000). A larger value gets the gas cap.
gasPricehex number, weiThe gas price of a legacy transaction.
maxFeePerGashex number, weiThe fee cap of an EIP-1559 transaction.
maxPriorityFeePerGashex number, weiThe tip of an EIP-1559 transaction.
valuehex number, weiThe ether to send with the call. Default: 0.
inputhex dataThe call data: the function selector and the arguments. data is also accepted. If both are present and not equal, the call gives -32602, as in reth. eth_simulateV1 then uses input.
noncehex numberThe nonce of the sender. Default: the account nonce.
chainIdhex numberThe chain. A different chain gives -32000 invalid chain ID, as in reth. eth_fillTransaction gives -32602 chainId does not match node's (have=N, want=M).
accessListlist ofAn EIP-2930 access list.
authorizationListlist ofEIP-7702 authorizations. The call runs as a type 4 transaction.
blobVersionedHasheslist of 32-byte hashesThe blob hashes of an EIP-4844 transaction.
maxFeePerBlobGashex number, weiThe blob fee cap of an EIP-4844 transaction.

Notes ​

  • A call pays no gas fee, as in reth. A call without a gas price sees a base fee of zero.
  • With a gas price and no gas, the gas limit is what the sender can pay for: (balance - value) / price. The gas limit of the block is the upper limit. If the value is above the balance, the answer is -32003 insufficient funds for gas * price + value.
  • The gas price of an EIP-1559 call is the lower of maxFeePerGas and the base fee plus the tip. Without maxFeePerGas, the gas price is the base fee plus the tip, as in reth.
  • A call with maxFeePerBlobGas is a blob call. Its gas price is the same as for an EIP-1559 call. It must have blob hashes. Blob hashes without maxFeePerBlobGas use the blob fee of the block.
  • Some fee fields give an error before the call runs, as in reth. maxFeePerGas below the base fee gives -32000. A tip above maxFeePerGas gives -32003. gasPrice with an EIP-1559 or blob fee field gives -32602.
  • A fee value larger than 128 bits gives -32602 Invalid params, as in reth.
  • eth_simulateV1 has its own fee rules.

Used by ​

debug_traceCall, eth_call, eth_createAccessList, eth_estimateGas, eth_fillTransaction, eth_sendTransaction, eth_signTransaction, trace_call, trace_callMany.