balance method

TransactionResult balance(
  1. String type,
  2. Object balance, {
  3. bool? useGasCoin,
  4. AllowanceReference? allowance,
})

Like coin but produces a Balance<[type]> value — for Move functions that take a balance directly, and for gasless address-balance transfers (e.g. 0x2::balance::send_funds<T>).

Implementation

TransactionResult balance(
  String type,
  Object balance, {
  bool? useGasCoin,
  AllowanceReference? allowance,
}) => _balanceIntent(type, balance, 'balance', useGasCoin, allowance);