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(String url, Client client)
The constructor takes url and client as input, which are passed to the parent JsonRPC class.

Properties

client → Client
Http client.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
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
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 RPC method name and the params 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