batchGetTokenBalance method

Future<BatchGetTokenBalanceOutput> batchGetTokenBalance({
  1. List<BatchGetTokenBalanceInputItem>? getTokenBalanceInputs,
})

Gets the token balance for a batch of tokens by using the BatchGetTokenBalance action for every token in the request.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter getTokenBalanceInputs : An array of BatchGetTokenBalanceInputItem objects whose balance is being requested.

Implementation

Future<BatchGetTokenBalanceOutput> batchGetTokenBalance({
  List<BatchGetTokenBalanceInputItem>? getTokenBalanceInputs,
}) async {
  final $payload = <String, dynamic>{
    if (getTokenBalanceInputs != null)
      'getTokenBalanceInputs': getTokenBalanceInputs,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/batch-get-token-balance',
    exceptionFnMap: _exceptionFns,
  );
  return BatchGetTokenBalanceOutput.fromJson(response);
}