Function createInitialDepositInstruction
- createInitialDepositInstruction(connection, playerPublicKey, shipQuantity, shipMint, shipTokenAccount, programId, factionEnlistmentProgramId?): Promise<web3.TransactionInstruction>
Parameters
- connection: Connection
- playerPublicKey: PublicKey
- shipQuantity: number
- shipMint: PublicKey
- shipTokenAccount: PublicKey
- programId: PublicKey
- factionEnlistmentProgramId: PublicKey = ...
Returns Promise<web3.TransactionInstruction>
Provides a transaction instruction which can be used to deposit a specified quantity of ships to a player's ship staking account.