Function withdrawShips

  • Withdraw ships from a user's escrow account.

    Returns

    InstructionReturn

    Parameters

    • program: ScoreIDLProgram

      Score IDL Program

    • playerAccount: AsyncSigner<unknown>

      Player account

    • playerAtlasTokenAccount: PublicKey

      Player atlas token account to transfer rewards to

    • shipTokenAccountReturn: PublicKey

      Ship token account to return to

    • toolkitTokenAccountSource: PublicKey

      Toolkit token account to take from for necessary repairs

    • shipMint: PublicKey

      Ship mint

    • toolkitMint: PublicKey

      Toolkit mint

    Returns InstructionReturn

Generated using TypeDoc