Function enlistToFaction

  • Create transaction instruction which can be used to enlist a player to a faction.

    Parameters

    • connection: Connection
    • factionID: FactionType
    • playerPublicKey: PublicKey
    • programId: PublicKey

    Returns Promise<web3.TransactionInstruction>