send method

Future<TransactionResponse> send(
  1. String method, [
  2. List args = const [],
  3. TxOverride? params
])

Send write method to the Contract.

This required the Contract object to be initalized with Signer.

A non-constant method requires a transaction to be signed and requires payment in the form of a fee to be paid to a miner.

This transaction will be verified by every node on the entire network as well by the miner who will compute the new state of the blockchain after executing it against the current state.

It cannot return a result. If a result is required, it should be logged using a Solidity event (or EVM log), which can then be queried from the transaction receipt.

Implementation

Future<TransactionResponse> send(String method,
        [List<dynamic> args = const [], TxOverride? params]) =>
    _call<TransactionResponse>(
        method, params != null ? [...args, params] : args);