request method

JsonRpcRequest request([
  1. Commitment? commitment
])

Creates a JsonRpcRequest to invoke method with params. The commitment level is provided as a default value to all methods that query bank state.

Implementation

JsonRpcRequest request([
  final Commitment? commitment,
]) =>
    JsonRpcRequest(
      id: ++_id,
      method: method,
      params: params(commitment),
    );