# BuyMembershipHelper

BuyMembershipHelper allows to easily create a BuyMembership object.

# Provided Operations

  1. fromWallet, creates a BuyMembership from the given wallet, the membershipType and tsp 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