Function createPartialDepositInstruction

  • Provides a transaction instruction which can be used to deposit a specified quantity of ships to an already deployed player's ship staking account.

    Parameters

    • connection: Connection

      web3.Connection object

    • playerPublicKey: PublicKey

      Player's public key

    • shipQuantity: number

      Quantity to deposit as u64

    • shipMint: PublicKey

      Ship mint address

    • shipTokenAccount: PublicKey

      Token account for the ship resource being deposited

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<web3.TransactionInstruction>