Trx
This is a generic method for invoking JSON RPC's eth_sendTransaction
with Ethers.js. Use this method to create a transaction that invokes a smart contract method. Returns an Ethers.js TransactionResponse
object.
address
(string) The Ethereum address the transaction is directed to.method
(string) The smart contract member in which to invoke.[parameters]
(any[]) Parameters of the method to invoke.[options]
(CallOptions) Options to set foreth_sendTransaction
, (as JSON object), and Ethers.js method overrides. The ABI can be a string optional ABI of the single intended method, an array of many methods, or a JSON object of the ABI generated by a Solidity compiler.RETURN
(Promise<any>) Returns an Ethers.jsTransactionResponse
object or an error object if the transaction failed.
Last updated