RPCProviderBase class abstract
Abstract base class for interacting with an Bundler RPC provider.
Implementations of this class are expected to provide functionality for specifically interacting with bundlers only.
- Implemented types
- Implementers
Constructors
Properties
Methods
-
call(
String function, [List? params]) → Future< RPCResponse> -
Performs an RPC request, asking the server to execute the function with
the given name and the associated parameters, which need to be encodable
with the json class of dart:convert.
inherited
-
estimateGas(
EthereumAddress to, String calldata) → Future< BigInt> - Estimates the gas cost of a transaction.
-
getBlockNumber(
) → Future< int> - Returns the current block number.
-
getEip1559GasPrice(
) → Future< Map< String, EtherAmount> > - Returns the EIP1559 gas price in wei for a network.
-
getGasPrice(
) → Future< Map< String, EtherAmount> > - Returns the gas price in wei for a network.
-
getLegacyGasPrice(
) → Future< EtherAmount> - Returns the legacy gas price in wei for a network.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send<
T> (String function, [List? params]) → Future< T> - Sends a transaction to the bundler RPC.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited