eth_call
Executes a new message call immediately without creating a transaction on the blockchain.
Example
BLOCK PARAMETER
- Anint
block number in the form of hex, appended with 0x such as0x6D7FE0
, or pre-defined stringslatest
,earliest
,pending
.TRANSACTION CALL OBJECT
- A transaction object to be broadcasted.
Web3API's Composer accepts int
block numbers, which will be auto-converted to a hex representation before being sent to a node.
Within the transaction call object, the following information are required.
from
: 20 Bytes - address of the sender.to
: 20 Bytes - address of the receiver.gas
: Hex representation of an integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.gasPrice
: Hex representation of an integer of the gasPrice used for each paid gasvalue
: Hex representation of an integer of the value sent with this transactiondata
: Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI.
Last updated