# BuyMembershipHelper
BuyMembershipHelper
allows to easily create a BuyMembership
object.
# Provided Operations
fromWallet
, creates aBuyMembership
from the givenwallet
, themembershipType
andtsp
address.static BuyMembership fromWallet({ required Wallet wallet, required MembershipType membershipType, required String tsp, })
1
2
3
4
5
# Usage examples
final wallet = Wallet.derive(mnemonic, networkInfo);
final membership = BuyMembershipHelper.fromWallet(
wallet: wallet,
membershipType: MembershipType.BRONZE,
tsp: tspAddress,
);
1
2
3
4
5
6
2
3
4
5
6