Function closeAccountsInstruction

  • Close all escrow accounts and ship staking accounts

    Parameters

    • connection: Connection

      web3.Connection object

    • playerPublicKey: PublicKey

      Player's public key

    • shipMint: PublicKey

      Ship mint address

    • fuelMint: PublicKey

      Fuel mint address

    • foodMint: PublicKey

      Food mint address

    • armsMint: PublicKey

      Arms mint address

    • programId: PublicKey

      Deployed program ID for the SCORE program

    Returns Promise<web3.TransactionInstruction>