setBundlerRpc method

dynamic setBundlerRpc(
  1. String? bundlerRpc
)

Method to set the _bundlerRpc. This can be used to specify a different endpoint for the bundler RPC.

bundlerRpc should be the new RPC url for the bundler. If this is not null, all bundler-specific RPC methods will be sent to this new endpoint instead.

Implementation

setBundlerRpc(String? bundlerRpc) {
  if (bundlerRpc != null) {
    _bundlerRpc = JsonRPC(bundlerRpc, client);
  }
  return this;
}