callContract method
Future<ISendUserOperationResponse>
callContract(
- EthereumAddress to,
- BigInt value,
- Uint8List data, [
- TxOptions? options,
Calls a contract with the specified parameters.
This method facilitates direct contract interactions.
to
is the address of the contract to be called.
value
is the amount of Ether (in Wei) to be sent with the call.
data
is the encoded data for the contract call.
options
provides additional transaction options.
Implementation
Future<ISendUserOperationResponse> callContract(
EthereumAddress to,
BigInt value,
Uint8List data, [
TxOptions? options,
]) async {
return _executeUserOperation(
Call(
to: to,
value: value,
data: data,
),
options,
);
}