buyMembershipsList static method
Future<TransactionResult>
buyMembershipsList(
- List<
BuyMembership> buyMemberships, - Wallet wallet, {
- StdFee? fee,
- BroadcastingMode? mode,
Buys the membership with the given buyMemberships
memberships list
and tsp wallet
.
Optionally fee
and broadcasting mode
parameters can be specified.
Implementation
static Future<TransactionResult> buyMembershipsList(
List<BuyMembership> buyMemberships,
Wallet wallet, {
StdFee? fee,
BroadcastingMode? mode,
}) async {
final msgs = buyMemberships
.map((buyMembership) => MsgBuyMembership(buyMembership: buyMembership))
.toList();
return TxHelper.createSignAndSendTx(
msgs,
wallet,
fee: fee,
mode: mode,
);
}