rewardPoolDepositsList static method

Future<TransactionResult> rewardPoolDepositsList(
  1. List<RewardPoolDeposit> rewardPoolDeposits,
  2. Wallet wallet, {
  3. StdFee? fee,
  4. BroadcastingMode? mode,
})

Deposit a list of rewardPoolDeposits deposits into reward pool with the depositor wallet. Optionally fee and broadcasting mode parameters can be specified.

Implementation

static Future<TransactionResult> rewardPoolDepositsList(
  List<RewardPoolDeposit> rewardPoolDeposits,
  Wallet wallet, {
  StdFee? fee,
  BroadcastingMode? mode,
}) async {
  final msgs = rewardPoolDeposits
      .map((rewardPoolDeposit) =>
          MsgRewardPoolDeposit(rewardPoolDeposit: rewardPoolDeposit))
      .toList();
  return TxHelper.createSignAndSendTx(
    msgs,
    wallet,
    fee: fee,
    mode: mode,
  );
}