Function createRearmInstruction

  • Provides a transaction instruction which can be used to transfer arms resources to a player's arms escrow account.

    Parameters

    • connection: Connection

      web3.Connection object

    • tokenOwnerPublickey: PublicKey

      Resource Token Account Owner

    • playerPublicKey: PublicKey

      Player's public key

    • armsQuantity: number

      Arms resource quantity as u64

    • shipMint: PublicKey

      Ship mint address

    • armsMint: PublicKey

      Arms resource mint address

    • armsTokenAccount: PublicKey

      Token account for the arms resources being deposited

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<web3.TransactionInstruction>