RPCProvider class

Inheritance
Implemented types

Constructors

RPCProvider(String url)

Properties

client Client
Http client.
finalinherited
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.
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