getBalanceBreakdown method

  1. @override
Future<CoinBalanceBreakdown> getBalanceBreakdown(
  1. String owner,
  2. String coinType
)
override

The owner's coinType balance split into coin-object vs address-balance sources — needed to resolve CoinWithBalance intents that may draw from the address balance. Transports without address-balance support (e.g. JSON-RPC) throw; the resolver only reaches this on the gRPC path.

Implementation

@override
Future<CoinBalanceBreakdown> getBalanceBreakdown(
  String owner,
  String coinType,
) async =>
    throw UnimplementedError(
        'Address-balance breakdown is not available over JSON-RPC; use the '
        'gRPC client for CoinWithBalance resolution from address balances.');