RPCProvider class
- Inheritance
-
- Object
- RpcService
- JsonRPC
- RPCProvider
- Implemented types
Constructors
- RPCProvider(String url)
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.
override
-
getBlockNumber(
) → Future< int> -
Returns the current block number.
override
-
getEip1559GasPrice(
) → Future< Map< String, EtherAmount> > -
Returns the EIP1559 gas price in wei for a network.
override
-
getGasPrice(
) → Future< Map< String, EtherAmount> > -
Returns the gas price in wei for a network.
override
-
getLegacyGasPrice(
) → Future< EtherAmount> -
Returns the legacy gas price in wei for a network.
override
-
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.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited