Executes a new message call immediately without creating a transaction on the blockchain.
Parameters
Name
Type
Description
Data
Object<Transaction>
The transaction object.
Block
Number | "latest" | "earliest" | "pending"
Block number to execute this call in.
Transaction
type Transaction = {
from: Address // The account the transaction is sent from.
to?: Address // The transaction recipient.
gas?: Number ?? 90000 // Gas units provided for transaction executon. It will return unused gas.
gasPrice?: Number ?? currentGasPrice() // WEI paid for each gas unit used.
value?: Number // WEI sent with this transaction to the recipient.
data?: HexData // Encoded contract call data.
}
Return Type
HexString<Any> - The returned data of the contract execution.