BundlerJsonRpcProvider class
A wrapper over JsonRPC, specifically for the Bundler RPC.
It has the added ability to re-route bundler methods. By default, userop.dart assumes both bundler and node methods share the same RPC url. This class allows for these methods to be re-routed to a different endpoint if needed.
- Inheritance
-
- Object
- RpcService
- JsonRPC
- BundlerJsonRpcProvider
Constructors
- BundlerJsonRpcProvider.new(String url, Client client)
-
The constructor takes
url
andclient
as input, which are passed to the parent JsonRPC class.
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
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
send(
String method, List params) → Future -
Override of the parent class's
call
method. It takes the RPCmethod
name and theparams
to pass to it. -
setBundlerRpc(
String? bundlerRpc) → dynamic -
Method to set the
_bundlerRpc
. This can be used to specify a different endpoint for the bundler RPC. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited