balanceOfBatchSingleAddress method

Future<List<BigInt>> balanceOfBatchSingleAddress(
  1. String address,
  2. List<int> ids
)

Returns the amount of tokens ids owned by address

Implementation

Future<List<BigInt>> balanceOfBatchSingleAddress(
        String address, List<int> ids) async =>
    (await contract.call<List>(
      'balanceOfBatch',
      [
        List.generate(ids.length, (index) => address),
        ids,
      ],
    ))
        .cast<BigNumber>()
        .map((e) => e.toBigInt)
        .toList();