eth_sendTransaction
Creates a new wallet confirmation to make an ethereum transaction from the user's account. This method requires that the user has granted permission to interact with their account first, so make sure to call eth_requestAccounts
or wallet_requestPermissions
first.
Params
(1)1. Transaction (required)
The transaction object to sign and send.
The parameters to customize a transaction. If a to
address is not provided. It will be assumed that the transaction is a contract creation transaction, and the data
field of the transaction will be used as the contract initialization code. gasPrice
cannot be used together with maxPriorityFeePerGas
and maxFeePerGas
.
The gas price willing to be paid by the sender in wei. Used in pre-1559 transactions.
Maximum fee per gas the sender is willing to pay to miners in wei. Used in 1559 transactions.
The maximum total fee per gas the sender is willing to pay (includes the network / base fee and miner / priority fee) in wei. Used in 1559 transactions.
Result
(TransactionHash)The transaction hash of the sent transaction.