Function createRepairInstruction

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

    Parameters

    • connection: Connection

      web3.Connection object

    • tokenOwnerPublickey: PublicKey

      Resource Token Account Owner

    • playerPublicKey: PublicKey

      Player's public key

    • toolkitQuantity: number

      Toolkit resource quantity as u64

    • shipMint: PublicKey

      Ship mint address

    • toolkitMint: PublicKey

      Toolkit resource mint address

    • toolkitTokenAccount: PublicKey

      Token account for the toolkit resource being deposited

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<web3.TransactionInstruction>