coin method
Produces a Coin<[type]> of exactly balance base units, sourced from the
sender's owned coin objects and/or per-address balance. The exact commands
(merge + split of owned coins, or an address-balance withdrawal) are chosen
at build time by the CoinWithBalance resolver based on what the sender
holds. For SUI, useGasCoin (the default) splits from the gas coin.
type is the coin type T (e.g. 0x…::usdc::USDC), or 'gas' for SUI
via the gas coin.
Implementation
TransactionResult coin(String type, BigInt balance, {bool useGasCoin = true}) =>
_coinWithBalanceIntent(type, balance, 'coin', useGasCoin);