getGasUsage method

Future<TGetGasUsageResponse> getGasUsage({
  1. required TGetGasUsageBody input,
})

Get gas usage and gas limits for either the parent organization or a sub-organization.

Sign the provided TGetGasUsageBody with the client's stamp function and submit the request (POST /public/v1/query/get_gas_usage).

See also: stampGetGasUsage.

Implementation

Future<TGetGasUsageResponse> getGasUsage({
  required TGetGasUsageBody input,
}) async {
  return await request<TGetGasUsageBody, TGetGasUsageResponse>(
      "/public/v1/query/get_gas_usage",
      input,
      (json) => TGetGasUsageResponse.fromJson(json));
}