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

RPCProviderBase()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited
url String
Url.
finalinherited

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