rewardPoolDepositsList static method
Future<TransactionResult>
rewardPoolDepositsList(
- List<
RewardPoolDeposit> rewardPoolDeposits, - Wallet wallet, {
- StdFee? fee,
- 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,
);
}